Uses of Class
mockit.MockUp
Packages that use MockUp
Package
Description
Provides integration with JUnit 4.x test runners, for version 4.5 or newer.
Provides integration with Spring Framework's bean
factories.
-
Uses of MockUp in mockit.integration.junit4
Subclasses of MockUp in mockit.integration.junit4Modifier and TypeClassDescriptionfinal classStartup fake that modifies the JUnit 4.5+ test runner so that it calls back to JMockit immediately after every test executes.final classStartup fake which works in conjunction withJUnit4TestRunnerDecoratorto provide JUnit 4.5+ integration. -
Uses of MockUp in mockit.integration.springframework
Subclasses of MockUp in mockit.integration.springframeworkModifier and TypeClassDescriptionfinal classIf applied, this fake will take over calls toAbstractBeanFactory.getBean(String)andAbstractBeanFactory.getBean(String, Class)in any implementation class, returning instead a@Testedor@Injectableobject with the given field name, or a dependency object injected at any level into a@Testedobject. -
Uses of MockUp in mockit.internal.faking
Fields in mockit.internal.faking declared as MockUpMethods in mockit.internal.faking that return MockUpMethods in mockit.internal.faking with parameters of type MockUpModifier and TypeMethodDescriptionvoidvoidvoidFakeClasses.findPreviouslyAppliedMockUps(MockUp<?> newMockUp) Constructors in mockit.internal.faking with parameters of type MockUpModifierConstructorDescriptionCaptureOfFakedImplementations(MockUp<?> fake, Type baseType) FakeClassSetup(Class<?> realClass, Class<?> classToFake, Type fakedType, MockUp<?> fake) FakedImplementationClass(MockUp<?> fakeInstance)