All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mockit.integration.junit4.package-info Maven / Gradle / Ivy

Go to download

JMockit is a Java toolkit for automated developer testing. It contains mocking/faking APIs and a code coverage tool, supporting both JUnit and TestNG. The mocking APIs allow all kinds of Java code, without testability restrictions, to be tested in isolation from selected dependencies.

There is a newer version: 1.49
Show newest version
/*
 * Copyright (c) 2006 JMockit developers
 * This file is subject to the terms of the MIT license (see LICENSE.txt).
 */

/**
 * Provides integration with JUnit 4.x test runners, for version 4.5 or newer.
 * This integration provides the following benefits to test code:
 * 
    *
  1. * Instance fields annotated with @Tested, @Injectable, @Mocked, or @Capturing are properly * initialized. *
  2. *
  3. * 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. *
  4. *
  5. * Expected invocations specified through the Mocking API are automatically verified before the execution of a test is completed. *
  6. *
  7. * 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. *
  8. *
*/ package mockit.integration.junit4;




© 2015 - 2024 Weber Informatics LLC | Privacy Policy