Package org.easymock
-
Interface Summary Interface Description IAnswer<T> Used to answer expected calls.IArgumentMatcher Decides whether an actual argument is accepted.IExpectationSetters<T> Allows setting expectations for an associated expected invocation.IMockBuilder<T> Helps the creation of partial mocks withEasyMock
.IMocksControl Controls all the mock objects created by it. -
Class Summary Class Description Capture<T> Will contain what was captured by thecapture()
matcher.ConstructorArgs Class wrapping arguments to create a partial class mock that gets instantiated by calling one of its constructors.EasyMock Main EasyMock class.EasyMockExtension JUnit 5 replaced the previousRunWith
annotation (which made use ofEasyMockRunner
) with the newExtendWith
annotation.EasyMockListener EasyMockRule JUnit Rule used to processMock
andTestSubject
annotations.EasyMockRunner JUnit runner used to processMock
andTestSubject
annotations.EasyMockSupport Helper class to keep track of mocks easily. -
Enum Summary Enum Description CaptureType Defines how arguments will be captured by a Capture object.LogicalOperator MockType Enum describing the 3 possibles kind of mocks -
Annotation Types Summary Annotation Type Description Mock Annotation to set on a field so thatEasyMockRunner
,EasyMockRule
orEasyMockSupport.injectMocks(Object)
will inject a mock to it.Preview Indicated that the annotated item is new and might be tweaked a little if needed.TestSubject Annotation to set on a field so thatEasyMockRunner
,EasyMockRule
orEasyMockSupport.injectMocks(Object)
will inject mocks created withMock
on its fields.