A test runner for JUnit 4.5+, with special modifications to integrate with JMockit.
Package mockit.integration.junit4 Description
Provides integration with JUnit 4.x
test runners, for version 4.5 or newer.
custom test runner (which is not an actual test runner, but
just a way to ensure that JMockit gets properly initialized - a better way is to simply put jmockit-1.x.jar
in the test runtime classpath).
This integration provides the following benefits to test code:
Instance fields annotated with @Tested, @Injectable, @Mocked, or @Capturing
are properly initialized.
Test methods accept mock parameters (annotated with @Injectable, @Mocked, or
@Capturing), whose values are mocked instances automatically created by JMockit and passed by the test
runner when the test method is executed.
Expected invocations specified through the Mocking API are automatically verified before the execution of a
test is completed.
Fake classes applied with the Faking API from inside a method annotated as a @Test or a
@Before method are discarded right after the execution of the test method or the whole test,
respectively. Similarly, fakes applied from a @BeforeClass method are discarded after all tests in a
test class have executed.