JMockit Home

Package mockit

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

See: Description

Package mockit Description

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

The Expectations class provides an API for the traditional record-replay model of recording expected invocations which are later replayed and implicitly verified. This API makes use of the Mocked annotation.

The Verifications class, when combined with the NonStrictExpectations class, extends the record-replay model to a record-replay-verify model, where the record phase can be left empty, with expected invocations verified explicitly after exercising the code under test (ie, after the replay phase).

The MockUp<T> generic class (where T is the mocked type) allows the definition of fake implementations for arbitrary classes.

JMockit Home

Copyright © 2006-2014. All Rights Reserved.