aboutsummaryrefslogtreecommitdiff
path: root/tests/src/test/kotlin/test/MockMaker.kt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/test/kotlin/test/MockMaker.kt')
-rw-r--r--tests/src/test/kotlin/test/MockMaker.kt10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/src/test/kotlin/test/MockMaker.kt b/tests/src/test/kotlin/test/MockMaker.kt
new file mode 100644
index 0000000..54f3d91
--- /dev/null
+++ b/tests/src/test/kotlin/test/MockMaker.kt
@@ -0,0 +1,10 @@
+package test
+
+import org.mockito.internal.configuration.plugins.Plugins
+import org.mockito.internal.creation.bytebuddy.InlineByteBuddyMockMaker
+
+
+internal var mockMakerInlineEnabled: Boolean? = null
+internal fun mockMakerInlineEnabled(): Boolean {
+ return mockMakerInlineEnabled ?: (Plugins.getMockMaker() is InlineByteBuddyMockMaker)
+}