Package mockit.integration.junit4
Class FakeFrameworkMethod
java.lang.Object
mockit.MockUp<org.junit.runners.model.FrameworkMethod>
mockit.integration.junit4.FakeFrameworkMethod
Startup fake that modifies the JUnit 4.5+ test runner so that it calls back to JMockit immediately after every test
executes. When that happens, JMockit will assert any expectations recorded during the test in
Expectations
subclasses.
This class is not supposed to be accessed from user code. JMockit will automatically load it at startup.
-
Field Summary
Fields inherited from class mockit.MockUp
targetType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninvokeExplosively
(Invocation invocation, Object target, Object... params) static void
validatePublicVoidNoArg
(Invocation invocation, boolean isStatic, List<Throwable> errors) Methods inherited from class mockit.MockUp
getMockInstance, onTearDown
-
Constructor Details
-
FakeFrameworkMethod
public FakeFrameworkMethod()
-
-
Method Details
-
invokeExplosively
@Nullable public Object invokeExplosively(@NonNull Invocation invocation, Object target, Object... params) throws Throwable - Throws:
Throwable
-
validatePublicVoidNoArg
public static void validatePublicVoidNoArg(@NonNull Invocation invocation, boolean isStatic, List<Throwable> errors)
-