All Classes and Interfaces
Class
Description
Matches if all given argument matchers match.
Mocks concrete classes for Android's runtime by generating dex files.
Android-specific support.
Matches any argument.
Utility class to convert method arguments to Strings
Matches if the argument is an array where the elements are equal to the given array.
Wraps an AssertionError that was thrown by a method invocation so that EasyMock knows the difference between an invocation
exception and an real unexpected one.
Code taken from the Spring
framework.
Will contain what was captured by the
capture()
matcher.Captures the argument to retrieve it later and matches anything.
Defines how arguments will be captured by a
Capture
object.Factory returning a
IClassInstantiator
for the current JVMClass containing the data required for a class mock to work.
Factory generating a mock for a class.
Matches if the argument, when compared (
Comparator.compare()
), agrees with the logical operator.Matches if the argument is equal when compared (as in
Comparable.compareTo() == 0
) to the given value.Base class for matchers that are comparing a value to another.
Class wrapping arguments to create a partial class mock that gets
instantiated by calling one of its constructors.
Matches if the argument is a string containing a given substring.
Default class instantiator that is pretty limited.
Main EasyMock class.
JUnit 5 replaced the previous
RunWith
annotation
(which made use of EasyMockRunner
) with the new
ExtendWith
annotation.Contains properties used by EasyMock to change its default behavior.
JUnit Rule used to process
Mock
and TestSubject
annotations.JUnit runner used to process
Mock
and TestSubject
annotations.JUnit Statement for use by JUnit Rule or JUnit Runner to process
Mock
and TestSubject
annotations.Helper class to keep track of mocks easily.
Matches if the argument is a string ending with a given suffix.
Matches if the argument is equal to the given value.
Matches if the argument is a number equal to the given value with some tolerance equal to delta.
The full content of an error message reporting to the user.
One expected invocation.
One expected invocation and its result.
The pair of an expected invocation and its results.
Matches if the argument is a string in which a regex can be found.
Matches if the argument is greater or equal to the given value.
Matches if the argument is strictly greater than the given value.
Used to answer expected calls.
Decides whether an actual argument is accepted.
Used to instantiate a given class.
Allows setting expectations for an associated expected invocation.
Helps the creation of partial mocks with
EasyMock
.The behavior of a mock.
Controls all the mock objects created by it.
Current state of a mocks control.
Described mock instance for injection.
Container for mock injections and test subject injection targets.
Applies an
Injection
to a target field.Performs creation of mocks and injection into test subjects in accordance with annotations present in the host object.
Matches if the argument is an instance of the given class.
Represents a method invocation on a mock object.
Reponsible of creating proxies for objects.
Proxy factory creating proxies from an interface using the standard JDK proxy API.
The last mocks control used in the current thread.
Matches if the argument is less or equal to the given value.
Match if the argument is less than the given value.
Matches if the argument is a string matching a given regex.
Wrapper used to serialize a
java.lang.reflect.Method
object when a mock is serialized.Annotation to set on a field so that
EasyMockRunner
, EasyMockRule
or EasyMockSupport.injectMocks(Object)
will inject a mock to it.Default implementation of IMockBuilder.
The handler of all invocations on a mock interface.
Default implementation of
IMocksBehavior
.Controls all the mocks created by
EasyMock
.Enum describing the 3 possibles kind of mocks
Matches if the argument DOESN'T match another.
Matches if the argument is not null.
Matches if the argument is null.
The filter catching all calls to the mock.
Class instantiator using Objenesis to perform the instantiation without calling any constructor.
Matches if any given argument matcher matches.
Indicated that the annotated item is new and might be tweaked a little if needed.
Helper class for primitive types.
The range of a number of invocations.
State in which a mock is recording its behavior.
Helper class for reflection.
A mock has two states, record and replay.
The result of an invocation on a mock.
The results of a specific call on a mock.
Wraps a RuntimeException that was thrown by a method invocation so that EasyMock knows the difference between an invocation
exception and an real unexpected one.
Matches if the argument is the same instance as the given value.
Matches if the argument is a string starting with the given prefix.
Annotation to set on a field so that
EasyMockRunner
, EasyMockRule
or EasyMockSupport.injectMocks(Object)
will inject mocks created with Mock
on its fields.Wraps a Throwable that was thrown by a method invocation so that EasyMock knows the difference between an invocation
exception and an real unexpected one.
A bit badly named since this class is used for both ordered and unordered expectations.