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

mockit.package-info Maven / Gradle / Ivy

Go to download

JMockit is a Java toolkit for automated developer testing. It contains APIs for the creation of the objects to be tested, for mocking dependencies, and for faking external APIs; JUnit (4 & 5) and TestNG test runners are supported. It also contains an advanced code coverage tool.

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

/**
 * Provides the classes and annotations used when writing tests with the JMockit mocking and faking APIs.
 * 

* The {@link mockit.Expectations} class provides an API for the record-replay model of recording expected * invocations which are later replayed and implicitly verified. * This API makes use of the {@linkplain mockit.Mocked @Mocked} annotation (among others). * The {@link mockit.Verifications} class extends the record-replay model to a record-replay-verify model, * where expectations that were not recorded can be verified explicitly after exercising the code under test * (ie, after the replay phase). *

* The {@linkplain mockit.MockUp MockUp<T>} generic class (where {@code T} is the mocked type) allows * the definition of fake implementations for arbitrary classes or interfaces. *

* For a description with examples of the Expectations API, see the * "Mocking" chapter in the Tutorial. * For the Mockups API, see the "Faking" chapter. */ package mockit;





© 2015 - 2024 Weber Informatics LLC | Privacy Policy