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

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

/*
 * Copyright (c) 2006-2012 Rogério Liesenfeld
 * This file is subject to the terms of the MIT license (see LICENSE.txt).
 */

/**
 * Provides integration with TestNG test runners, for versions 5.14+.
 * Contains the {@link mockit.integration.testng.Initializer} test listener class that can be specified to TestNG at
 * startup, as well as the "startup mock" implementation for integration with the TestNG test runner.
 * 

* This integration provides the same benefits to test code as the one for JUnit 4: *

    *
  1. * Unexpected invocations specified through the Mockups or the Expectations API are automatically verified just before * the execution of a test ends (specifically, immediately after the execution of the test method). *
  2. *
  3. * Any mock classes applied with the Mockups API from inside a method annotated as a {@code @Test} or a * {@code @BeforeMethod} will be discarded right after the execution of the test or the test method, respectively. *
  4. *
  5. * Any mock class set up for the whole test class will only apply to the tests in this same test class. * That is, you should not explicitly tell JMockit to restore the mocked classes in an {@code @AfterClass} method. *
  6. *
  7. * Test methods will accept mock parameters, whose values are mocked instances automatically created by JMockit * and passed by the test runner when the test method gets executed. *
  8. *
*/ package mockit.integration.testng;




© 2015 - 2024 Weber Informatics LLC | Privacy Policy