JMockit Description
The Maven Central repository hosts the toolkit. For test execution, Java 7 or higher is required. Tests must use JUnit/TestNG. See Running tests with JMockit for instructions on how to add this library to a Java Project. This tutorial will show you how to use Java 8 to test the APIs in the library. The central API, a single annotation, allows for the automatic instantiation or initialization of objects to be tested. The mocking API, also known as the "Expectations API", is for mocked dependencies. A small fake API (aka "Mockups") can be used to create and apply fake implementations, which avoids the full cost of external parts.