private Boolean isUsedMockMaker() { if (!isMockitoVersion2()) return false; MockMaker mockMaker = Plugins.getMockMaker(); return !(mockMaker instanceof ByteBuddyMockMaker); }
/** * Returns the implementation of the mock maker available for the current runtime. * * <p>Returns {@link IosMockMaker} if no {@link MockMaker} extension exists * or is visible in the current classpath.</p> */ public static MockMaker getMockMaker() { return mockMaker; }
/** * Scans the classpath to find a mock maker plugin if one is available, * allowing mockito to run on alternative platforms like Android. */ static MockMaker findPlatformMockMaker() { return findPluginImplementation(MockMaker.class, new IosMockMaker()); }
/** * Returns the implementation of the mock maker available for the current runtime. * * <p>Returns {@link org.mockito.internal.creation.CglibMockMaker} if no * {@link MockMaker} extension exists or is visible in the current classpath.</p> */ public static MockMaker getMockMaker() { return mockMaker; }
/** * Scans the classpath to find a mock maker plugin if one is available, * allowing mockito to run on alternative platforms like Android. */ static MockMaker findPlatformMockMaker() { return findPluginImplementation(MockMaker.class, DEFAULT_MOCK_MAKER_CLASS); }