Top Interfaces Annotations Classes Enums
[default module]

Package org.easymock


Interface Summary

Modifier and TypeInterface and Description
public interface
IAnswer<
the type to return.
T
>

Used to answer expected calls.

public interface
IArgumentMatcher

Decides whether an actual argument is accepted.

public interface
IExpectationSetters<
type of what should be returned by this expected call
T
>

Allows setting expectations for an associated expected invocation.

public interface
IMockBuilder<
type of the object being created
T
>

Helps the creation of partial mocks with EasyMock.

public interface
IMocksControl

Controls all the mock objects created by it.

Annotation Summary

Modifier and TypeAnnotation and Description
public @interface
Mock

Annotation to set on a field so that EasyMockRunner, EasyMockRule or EasyMockSupport#injectMocks(Object) will inject a mock to it.

public @interface
Preview

Indicated that the annotated item is new and might be tweaked a little if needed.

public @interface
TestSubject

Annotation to set on a field so that EasyMockRunner, EasyMockRule or EasyMockSupport#injectMocks(Object) will inject mocks created with Mock on its fields.

Class Summary

Modifier and TypeClass and Description
public class
Capture<
Type of the captured element
T
>

Will contain what was captured by the capture() matcher.

public class
ConstructorArgs

Class wrapping arguments to create a partial class mock that gets instantiated by calling one of its constructors.

public class
EasyMock

Main EasyMock class.

public class
EasyMockExtension

JUnit 5 replaced the previous org.junit.runner.RunWith annotation (which made use of EasyMockRunner) with the new org.junit.jupiter.api.extension.ExtendWith annotation.

public class
public class
EasyMockRule

JUnit Rule used to process Mock and TestSubject annotations.

public class
EasyMockRunner

JUnit runner used to process Mock and TestSubject annotations.

public class
EasyMockSupport

Helper class to keep track of mocks easily.

Enum Summary

Modifier and TypeEnum and Description
public enum
CaptureType

Defines how arguments will be captured by a Capture object.

public enum
public enum
MockType

Enum describing the 3 possibles kind of mocks