org.easymock
Class EasyMock

public class EasyMock
No description provided.
SinceNot specified.
VersionNot specified.
AuthorNot specified.
Wiki javadoc Use textile entry format.
Add your comments here.
Constructor Summary
EasyMock()
No description provided.
Method Summary
static boolean and( boolean first, boolean second )
Expects a boolean that matches both given expectations.
static byte and( byte first, byte second )
Expects a byte that matches both given expectations.
static char and( char first, char second )
Expects a char that matches both given expectations.
static double and( double first, double second )
Expects a double that matches both given expectations.
static float and( float first, float second )
Expects a float that matches both given expectations.
static int and( int first, int second )
Expects an int that matches both given expectations.
static long and( long first, long second )
Expects a long that matches both given expectations.
static short and( short first, short second )
Expects a short that matches both given expectations.
static T and( T first, T second )
Expects an Object that matches both given expectations.
static boolean anyBoolean()
Expects any boolean argument.
static byte anyByte()
Expects any byte argument.
static char anyChar()
Expects any char argument.
static double anyDouble()
Expects any double argument.
static float anyFloat()
Expects any float argument.
static int anyInt()
Expects any int argument.
static long anyLong()
Expects any long argument.
static Object anyObject()
Expects any Object argument.
static short anyShort()
Expects any short argument.
static boolean[] aryEq( boolean [] value )
Expects a boolean array that is equal to the given array, i.e.
static byte[] aryEq( byte [] value )
Expects a byte array that is equal to the given array, i.e.
static char[] aryEq( char [] value )
Expects a char array that is equal to the given array, i.e.
static double[] aryEq( double [] value )
Expects a double array that is equal to the given array, i.e.
static float[] aryEq( float [] value )
Expects a float array that is equal to the given array, i.e.
static int[] aryEq( int [] value )
Expects an int array that is equal to the given array, i.e.
static long[] aryEq( long [] value )
Expects a long array that is equal to the given array, i.e.
static short[] aryEq( short [] value )
Expects a short array that is equal to the given array, i.e.
static T[] aryEq( T [] value )
Expects an Object array that is equal to the given array, i.e.
static void checkOrder( Object mock, boolean state )
Switches order checking of the given mock object (more exactly: the control of the mock object) the on and off.
static String contains( String substring )
Expects a string that contains the given substring.
static IMocksControl createControl()
Creates a control, order checking is disabled by default.
static T createMock( Class<T> toMock )
Creates a mock object that implements the given interface, order checking is disabled by default.
static IMocksControl createNiceControl()
Creates a control, order checking is disabled by default, and the mock objects created by this control will return 0, null or false for unexpected invocations.
static T createNiceMock( Class<T> toMock )
Creates a mock object that implements the given interface, order checking is disabled by default, and the mock object will return 0, null or false for unexpected invocations.
static IMocksControl createStrictControl()
Creates a control, order checking is enabled by default.
static T createStrictMock( Class<T> toMock )
Creates a mock object that implements the given interface, order checking is enabled by default.
static String endsWith( String suffix )
Expects a string that ends with the given suffix.
static boolean eq( boolean value )
Expects a boolean that is equal to the given value.
static byte eq( byte value )
Expects a byte that is equal to the given value.
static char eq( char value )
Expects a char that is equal to the given value.
static double eq( double value )
Expects a double that is equal to the given value.
static float eq( float value )
Expects a float that is equal to the given value.
static int eq( int value )
Expects an int that is equal to the given value.
static long eq( long value )
Expects a long that is equal to the given value.
static short eq( short value )
Expects a short that is equal to the given value.
static T eq( T value )
Expects an Object that is equal to the given value.
static double eq( double value, double delta )
Expects a double that has an absolute difference to the given value that is less than the given delta.
static float eq( float value, float delta )
Expects a float that has an absolute difference to the given value that is less than the given delta.
static IExpectationSetters<T> expect( T value )
Returns the expectation setter for the last expected invocation in the current thread.
static IExpectationSetters<Object> expectLastCall()
Returns the expectation setter for the last expected invocation in the current thread.
static String find( String regex )
Expects a string that contains a substring that matches the given regular expression.
static byte geq( byte value )
Expects a byte argument greater than or equal to the given value.
static double geq( double value )
Expects a double argument greater than or equal to the given value.
static float geq( float value )
Expects a float argument greater than or equal to the given value.
static int geq( int value )
Expects an int argument greater than or equal to the given value.
static long geq( long value )
Expects a long argument greater than or equal to the given value.
static short geq( short value )
Expects a short argument greater than or equal to the given value.
static Object[] getCurrentArguments()
Returns the arguments of the current mock method call, if inside an IAnswer callback - be careful here, reordering parameters of method changes the semantics of your tests.
static byte gt( byte value )
Expects a byte argument greater than the given value.
static double gt( double value )
Expects a double argument greater than the given value.
static float gt( float value )
Expects a float argument greater than the given value.
static int gt( int value )
Expects an int argument greater than the given value.
static long gt( long value )
Expects a long argument greater than the given value.
static short gt( short value )
Expects a short argument greater than the given value.
static T isA( Class<T> clazz )
Expects an object implementing the given class.
static Object isNull()
Expects null.
static byte leq( byte value )
Expects a byte argument less than or equal to the given value.
static double leq( double value )
Expects a double argument less than or equal to the given value.
static float leq( float value )
Expects a float argument less than or equal to the given value.
static int leq( int value )
Expects an int argument less than or equal to the given value.
static long leq( long value )
Expects a long argument less than or equal to the given value.
static short leq( short value )
Expects a short argument less than or equal to the given value.
static byte lt( byte value )
Expects a byte argument less than the given value.
static double lt( double value )
Expects a double argument less than the given value.
static float lt( float value )
Expects a float argument less than the given value.
static int lt( int value )
Expects an int argument less than the given value.
static long lt( long value )
Expects a long argument less than the given value.
static short lt( short value )
Expects a short argument less than the given value.
static String matches( String regex )
Expects a string that matches the given regular expression.
static boolean not( boolean first )
Expects a boolean that does not match the given expectation.
static byte not( byte first )
Expects a byte that does not match the given expectation.
static char not( char first )
Expects a char that does not match the given expectation.
static double not( double first )
Expects a double that does not match the given expectation.
static float not( float first )
Expects a float that does not match the given expectation.
static int not( int first )
Expects an int that does not match the given expectation.
static long not( long first )
Expects a long that does not match the given expectation.
static short not( short first )
Expects a short that does not match the given expectation.
static T not( T first )
Expects an Object that does not match the given expectation.
static Object notNull()
Expects not null.
static boolean or( boolean first, boolean second )
Expects a boolean that matches one of the given expectations.
static byte or( byte first, byte second )
Expects a byte that matches one of the given expectations.
static char or( char first, char second )
Expects a char that matches one of the given expectations.
static double or( double first, double second )
Expects a double that matches one of the given expectations.
static float or( float first, float second )
Expects a float that matches one of the given expectations.
static int or( int first, int second )
Expects an int that matches one of the given expectations.
static long or( long first, long second )
Expects a long that matches one of the given expectations.
static short or( short first, short second )
Expects a short that matches one of the given expectations.
static T or( T first, T second )
Expects an Object that matches one of the given expectations.
static void replay( Object ... [] mocks )
Switches the given mock objects (more exactly: the controls of the mock objects) to replay mode.
static void reportMatcher( IArgumentMatcher matcher )
Reports an argument matcher.
static void reset( Object ... [] mocks )
Resets the given mock objects (more exactly: the controls of the mock objects).
static T same( T value )
Expects an Object that is the same as the given value.
static String startsWith( String prefix )
Expects a string that starts with the given prefix.
static void verify( Object ... [] mocks )
Verifies the given mock objects (more exactly: the controls of the mock objects).
EasyMock
public EasyMock ( )
No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
and
public static boolean and ( boolean first, boolean second )
Expects a boolean that matches both given expectations.
Parameters
TypeNameDescription
boolean first placeholder for the first expectation.
boolean second placeholder for the second expectation.
Wiki javadoc Use textile entry format.
Add your comments here.
and
public static byte and ( byte first, byte second )
Expects a byte that matches both given expectations.
Parameters
TypeNameDescription
byte first placeholder for the first expectation.
byte second placeholder for the second expectation.
Wiki javadoc Use textile entry format.
Add your comments here.
and
public static char and ( char first, char second )
Expects a char that matches both given expectations.
Parameters
TypeNameDescription
char first placeholder for the first expectation.
char second placeholder for the second expectation.
Wiki javadoc Use textile entry format.
Add your comments here.
and
public static double and ( double first, double second )
Expects a double that matches both given expectations.
Parameters
TypeNameDescription
double first placeholder for the first expectation.
double second placeholder for the second expectation.
Wiki javadoc Use textile entry format.
Add your comments here.
and
public static float and ( float first, float second )
Expects a float that matches both given expectations.
Parameters
TypeNameDescription
float first placeholder for the first expectation.
float second placeholder for the second expectation.
Wiki javadoc Use textile entry format.
Add your comments here.
and
public static int and ( int first, int second )
Expects an int that matches both given expectations.
Parameters
TypeNameDescription
int first placeholder for the first expectation.
int second placeholder for the second expectation.
Wiki javadoc Use textile entry format.
Add your comments here.
and
public static long and ( long first, long second )
Expects a long that matches both given expectations.
Parameters
TypeNameDescription
long first placeholder for the first expectation.
long second placeholder for the second expectation.
Wiki javadoc Use textile entry format.
Add your comments here.
and
public static short and ( short first, short second )
Expects a short that matches both given expectations.
Parameters
TypeNameDescription
short first placeholder for the first expectation.
short second placeholder for the second expectation.
Wiki javadoc Use textile entry format.
Add your comments here.
and
public static <T> T and ( T first, T second )
Expects an Object that matches both given expectations.
Parameters
TypeNameDescription
T first placeholder for the first expectation.
T second placeholder for the second expectation.
Wiki javadoc Use textile entry format.
Add your comments here.
anyBoolean
public static boolean anyBoolean ( )
Expects any boolean argument. For details, see the EasyMock documentation.
Wiki javadoc Use textile entry format.
Add your comments here.
anyByte
public static byte anyByte ( )
Expects any byte argument. For details, see the EasyMock documentation.
Wiki javadoc Use textile entry format.
Add your comments here.
anyChar
public static char anyChar ( )
Expects any char argument. For details, see the EasyMock documentation.
Wiki javadoc Use textile entry format.
Add your comments here.
anyDouble
public static double anyDouble ( )
Expects any double argument. For details, see the EasyMock documentation.
Wiki javadoc Use textile entry format.
Add your comments here.
anyFloat
public static float anyFloat ( )
Expects any float argument. For details, see the EasyMock documentation.
Wiki javadoc Use textile entry format.
Add your comments here.
anyInt
public static int anyInt ( )
Expects any int argument. For details, see the EasyMock documentation.
Wiki javadoc Use textile entry format.
Add your comments here.
anyLong
public static long anyLong ( )
Expects any long argument. For details, see the EasyMock documentation.
Wiki javadoc Use textile entry format.
Add your comments here.
anyObject
public static Object anyObject ( )
Expects any Object argument. For details, see the EasyMock documentation.
Wiki javadoc Use textile entry format.
Add your comments here.
anyShort
public static short anyShort ( )
Expects any short argument. For details, see the EasyMock documentation.
Wiki javadoc Use textile entry format.
Add your comments here.
aryEq
public static boolean[] aryEq ( boolean [] value )
Expects a boolean array that is equal to the given array, i.e. it has to have the same length, and each element has to be equal.
Parameters
TypeNameDescription
boolean[] value the given arry.
Wiki javadoc Use textile entry format.
Add your comments here.
aryEq
public static byte[] aryEq ( byte [] value )
Expects a byte array that is equal to the given array, i.e. it has to have the same length, and each element has to be equal.
Parameters
TypeNameDescription
byte[] value the given arry.
Wiki javadoc Use textile entry format.
Add your comments here.
aryEq
public static char[] aryEq ( char [] value )
Expects a char array that is equal to the given array, i.e. it has to have the same length, and each element has to be equal.
Parameters
TypeNameDescription
char[] value the given arry.
Wiki javadoc Use textile entry format.
Add your comments here.
aryEq
public static double[] aryEq ( double [] value )
Expects a double array that is equal to the given array, i.e. it has to have the same length, and each element has to be equal.
Parameters
TypeNameDescription
double[] value the given arry.
Wiki javadoc Use textile entry format.
Add your comments here.
aryEq
public static float[] aryEq ( float [] value )
Expects a float array that is equal to the given array, i.e. it has to have the same length, and each element has to be equal.
Parameters
TypeNameDescription
float[] value the given arry.
Wiki javadoc Use textile entry format.
Add your comments here.
aryEq
public static int[] aryEq ( int [] value )
Expects an int array that is equal to the given array, i.e. it has to have the same length, and each element has to be equal.
Parameters
TypeNameDescription
int[] value the given arry.
Wiki javadoc Use textile entry format.
Add your comments here.
aryEq
public static long[] aryEq ( long [] value )
Expects a long array that is equal to the given array, i.e. it has to have the same length, and each element has to be equal.
Parameters
TypeNameDescription
long[] value the given arry.
Wiki javadoc Use textile entry format.
Add your comments here.
aryEq
public static short[] aryEq ( short [] value )
Expects a short array that is equal to the given array, i.e. it has to have the same length, and each element has to be equal.
Parameters
TypeNameDescription
short[] value the given arry.
Wiki javadoc Use textile entry format.
Add your comments here.
aryEq
public static <T> T[] aryEq ( T [] value )
Expects an Object array that is equal to the given array, i.e. it has to have the same type, length, and each element has to be equal.
Parameters
TypeNameDescription
T[] value the given arry.
Wiki javadoc Use textile entry format.
Add your comments here.
checkOrder
public static void checkOrder ( Object mock, boolean state )
Switches order checking of the given mock object (more exactly: the control of the mock object) the on and off. For details, see the EasyMock documentation.
Parameters
TypeNameDescription
Object mock the mock object.
boolean state true switches order checking on, false switches it off.
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
contains
public static String contains ( String substring )
Expects a string that contains the given substring. For details, see the EasyMock documentation.
Parameters
TypeNameDescription
String substring the substring.
Wiki javadoc Use textile entry format.
Add your comments here.
createControl
public static IMocksControl createControl ( )
Creates a control, order checking is disabled by default.
Wiki javadoc Use textile entry format.
Add your comments here.
createMock
public static <T> T createMock ( Class<T> toMock )
Creates a mock object that implements the given interface, order checking is disabled by default.
Parameters
TypeNameDescription
Class<T> toMock the class of the interface that the mock object should implement.
Wiki javadoc Use textile entry format.
Add your comments here.
createNiceControl
public static IMocksControl createNiceControl ( )
Creates a control, order checking is disabled by default, and the mock objects created by this control will return 0, null or false for unexpected invocations.
Wiki javadoc Use textile entry format.
Add your comments here.
createNiceMock
public static <T> T createNiceMock ( Class<T> toMock )
Creates a mock object that implements the given interface, order checking is disabled by default, and the mock object will return 0, null or false for unexpected invocations.
Parameters
TypeNameDescription
Class<T> toMock the class of the interface that the mock object should implement.
Wiki javadoc Use textile entry format.
Add your comments here.
createStrictControl
public static IMocksControl createStrictControl ( )
Creates a control, order checking is enabled by default.
Wiki javadoc Use textile entry format.
Add your comments here.
createStrictMock
public static <T> T createStrictMock ( Class<T> toMock )
Creates a mock object that implements the given interface, order checking is enabled by default.
Parameters
TypeNameDescription
Class<T> toMock the class of the interface that the mock object should implement.
Wiki javadoc Use textile entry format.
Add your comments here.
endsWith
public static String endsWith ( String suffix )
Expects a string that ends with the given suffix. For details, see the EasyMock documentation.
Parameters
TypeNameDescription
String suffix the suffix.
Wiki javadoc Use textile entry format.
Add your comments here.
eq
public static boolean eq ( boolean value )
Expects a boolean that is equal to the given value.
Parameters
TypeNameDescription
boolean value the given value.
Wiki javadoc Use textile entry format.
Add your comments here.
eq
public static byte eq ( byte value )
Expects a byte that is equal to the given value.
Parameters
TypeNameDescription
byte value the given value.
Wiki javadoc Use textile entry format.
Add your comments here.
eq
public static char eq ( char value )
Expects a char that is equal to the given value.
Parameters
TypeNameDescription
char value the given value.
Wiki javadoc Use textile entry format.
Add your comments here.
eq
public static double eq ( double value )
Expects a double that is equal to the given value.
Parameters
TypeNameDescription
double value the given value.
Wiki javadoc Use textile entry format.
Add your comments here.
eq
public static float eq ( float value )
Expects a float that is equal to the given value.
Parameters
TypeNameDescription
float value the given value.
Wiki javadoc Use textile entry format.
Add your comments here.
eq
public static int eq ( int value )
Expects an int that is equal to the given value.
Parameters
TypeNameDescription
int value the given value.
Wiki javadoc Use textile entry format.
Add your comments here.
eq
public static long eq ( long value )
Expects a long that is equal to the given value.
Parameters
TypeNameDescription
long value the given value.
Wiki javadoc Use textile entry format.
Add your comments here.
eq
public static short eq ( short value )
Expects a short that is equal to the given value.
Parameters
TypeNameDescription
short value the given value.
Wiki javadoc Use textile entry format.
Add your comments here.
eq
public static <T> T eq ( T value )
Expects an Object that is equal to the given value.
Parameters
TypeNameDescription
T value the given value.
Wiki javadoc Use textile entry format.
Add your comments here.
eq
public static double eq ( double value, double delta )
Expects a double that has an absolute difference to the given value that is less than the given delta. For details, see the EasyMock documentation.
Parameters
TypeNameDescription
double value the given value.
double delta the given delta.
Wiki javadoc Use textile entry format.
Add your comments here.
eq
public static float eq ( float value, float delta )
Expects a float that has an absolute difference to the given value that is less than the given delta. For details, see the EasyMock documentation.
Parameters
TypeNameDescription
float value the given value.
float delta the given delta.
Wiki javadoc Use textile entry format.
Add your comments here.
expect
public static <T> IExpectationSetters<T> expect ( T value )
Returns the expectation setter for the last expected invocation in the current thread.
Parameters
TypeNameDescription
T value the parameter is used to transport the type to the ExpectationSetter. It allows writing the expected call as argument, i.e. expect(mock.getName()).andReturn("John Doe").
Wiki javadoc Use textile entry format.
Add your comments here.
expectLastCall
public static IExpectationSetters<Object> expectLastCall ( )
Returns the expectation setter for the last expected invocation in the current thread. This method is used for expected invocations on void methods.
Wiki javadoc Use textile entry format.
Add your comments here.
find
public static String find ( String regex )
Expects a string that contains a substring that matches the given regular expression. For details, see the EasyMock documentation.
Parameters
TypeNameDescription
String regex the regular expression.
Wiki javadoc Use textile entry format.
Add your comments here.
geq
public static byte geq ( byte value )
Expects a byte argument greater than or equal to the given value. For details, see the EasyMock documentation.
Parameters
TypeNameDescription
byte value the given value.
Wiki javadoc Use textile entry format.
Add your comments here.
geq
public static double geq ( double value )
Expects a double argument greater than or equal to the given value. For details, see the EasyMock documentation.
Parameters
TypeNameDescription
double value the given value.
Wiki javadoc Use textile entry format.
Add your comments here.
geq
public static float geq ( float value )
Expects a float argument greater than or equal to the given value. For details, see the EasyMock documentation.
Parameters
TypeNameDescription
float value the given value.
Wiki javadoc Use textile entry format.
Add your comments here.
geq
public static int geq ( int value )
Expects an int argument greater than or equal to the given value. For details, see the EasyMock documentation.
Parameters
TypeNameDescription
int value the given value.
Wiki javadoc Use textile entry format.
Add your comments here.
geq
public static long geq ( long value )
Expects a long argument greater than or equal to the given value. For details, see the EasyMock documentation.
Parameters
TypeNameDescription
long value the given value.
Wiki javadoc Use textile entry format.
Add your comments here.
geq
public static short geq ( short value )
Expects a short argument greater than or equal to the given value. For details, see the EasyMock documentation.
Parameters
TypeNameDescription
short value the given value.
Wiki javadoc Use textile entry format.
Add your comments here.
getCurrentArguments
public static Object[] getCurrentArguments ( )
Returns the arguments of the current mock method call, if inside an IAnswer callback - be careful here, reordering parameters of method changes the semantics of your tests.
Wiki javadoc Use textile entry format.
Add your comments here.
gt
public static byte gt ( byte value )
Expects a byte argument greater than the given value. For details, see the EasyMock documentation.
Parameters
TypeNameDescription
byte value the given value.
Wiki javadoc Use textile entry format.
Add your comments here.
gt
public static double gt ( double value )
Expects a double argument greater than the given value. For details, see the EasyMock documentation.
Parameters
TypeNameDescription
double value the given value.
Wiki javadoc Use textile entry format.
Add your comments here.
gt
public static float gt ( float value )
Expects a float argument greater than the given value. For details, see the EasyMock documentation.
Parameters
TypeNameDescription
float value the given value.
Wiki javadoc Use textile entry format.
Add your comments here.
gt
public static int gt ( int value )
Expects an int argument greater than the given value. For details, see the EasyMock documentation.
Parameters
TypeNameDescription
int value the given value.
Wiki javadoc Use textile entry format.
Add your comments here.
gt
public static long gt ( long value )
Expects a long argument greater than the given value. For details, see the EasyMock documentation.
Parameters
TypeNameDescription
long value the given value.
Wiki javadoc Use textile entry format.
Add your comments here.
gt
public static short gt ( short value )
Expects a short argument greater than the given value. For details, see the EasyMock documentation.
Parameters
TypeNameDescription
short value the given value.
Wiki javadoc Use textile entry format.
Add your comments here.
isA
public static <T> T isA ( Class<T> clazz )
Expects an object implementing the given class. For details, see the EasyMock documentation.
Parameters
TypeNameDescription
Class<T> clazz the class of the accepted type.
Wiki javadoc Use textile entry format.
Add your comments here.
isNull
public static Object isNull ( )
Expects null.
Wiki javadoc Use textile entry format.
Add your comments here.
leq
public static byte leq ( byte value )
Expects a byte argument less than or equal to the given value. For details, see the EasyMock documentation.
Parameters
TypeNameDescription
byte value the given value.
Wiki javadoc Use textile entry format.
Add your comments here.
leq
public static double leq ( double value )
Expects a double argument less than or equal to the given value. For details, see the EasyMock documentation.
Parameters
TypeNameDescription
double value the given value.
Wiki javadoc Use textile entry format.
Add your comments here.
leq
public static float leq ( float value )
Expects a float argument less than or equal to the given value. For details, see the EasyMock documentation.
Parameters
TypeNameDescription
float value the given value.
Wiki javadoc Use textile entry format.
Add your comments here.
leq
public static int leq ( int value )
Expects an int argument less than or equal to the given value. For details, see the EasyMock documentation.
Parameters
TypeNameDescription
int value the given value.
Wiki javadoc Use textile entry format.
Add your comments here.
leq
public static long leq ( long value )
Expects a long argument less than or equal to the given value. For details, see the EasyMock documentation.
Parameters
TypeNameDescription
long value the given value.
Wiki javadoc Use textile entry format.
Add your comments here.
leq
public static short leq ( short value )
Expects a short argument less than or equal to the given value. For details, see the EasyMock documentation.
Parameters
TypeNameDescription
short value the given value.
Wiki javadoc Use textile entry format.
Add your comments here.
lt
public static byte lt ( byte value )
Expects a byte argument less than the given value. For details, see the EasyMock documentation.
Parameters
TypeNameDescription
byte value the given value.
Wiki javadoc Use textile entry format.
Add your comments here.
lt
public static double lt ( double value )
Expects a double argument less than the given value. For details, see the EasyMock documentation.
Parameters
TypeNameDescription
double value the given value.
Wiki javadoc Use textile entry format.
Add your comments here.
lt
public static float lt ( float value )
Expects a float argument less than the given value. For details, see the EasyMock documentation.
Parameters
TypeNameDescription
float value the given value.
Wiki javadoc Use textile entry format.
Add your comments here.
lt
public static int lt ( int value )
Expects an int argument less than the given value. For details, see the EasyMock documentation.
Parameters
TypeNameDescription
int value the given value.
Wiki javadoc Use textile entry format.
Add your comments here.
lt
public static long lt ( long value )
Expects a long argument less than the given value. For details, see the EasyMock documentation.
Parameters
TypeNameDescription
long value the given value.
Wiki javadoc Use textile entry format.
Add your comments here.
lt
public static short lt ( short value )
Expects a short argument less than the given value. For details, see the EasyMock documentation.
Parameters
TypeNameDescription
short value the given value.
Wiki javadoc Use textile entry format.
Add your comments here.
matches
public static String matches ( String regex )
Expects a string that matches the given regular expression. For details, see the EasyMock documentation.
Parameters
TypeNameDescription
String regex the regular expression.
Wiki javadoc Use textile entry format.
Add your comments here.
not
public static boolean not ( boolean first )
Expects a boolean that does not match the given expectation.
Parameters
TypeNameDescription
boolean first placeholder for the expectation.
Wiki javadoc Use textile entry format.
Add your comments here.
not
public static byte not ( byte first )
Expects a byte that does not match the given expectation.
Parameters
TypeNameDescription
byte first placeholder for the expectation.
Wiki javadoc Use textile entry format.
Add your comments here.
not
public static char not ( char first )
Expects a char that does not match the given expectation.
Parameters
TypeNameDescription
char first placeholder for the expectation.
Wiki javadoc Use textile entry format.
Add your comments here.
not
public static double not ( double first )
Expects a double that does not match the given expectation.
Parameters
TypeNameDescription
double first placeholder for the expectation.
Wiki javadoc Use textile entry format.
Add your comments here.
not
public static float not ( float first )
Expects a float that does not match the given expectation.
Parameters
TypeNameDescription
float first placeholder for the expectation.
Wiki javadoc Use textile entry format.
Add your comments here.
not
public static int not ( int first )
Expects an int that does not match the given expectation.
Parameters
TypeNameDescription
int first placeholder for the expectation.
Wiki javadoc Use textile entry format.
Add your comments here.
not
public static long not ( long first )
Expects a long that does not match the given expectation.
Parameters
TypeNameDescription
long first placeholder for the expectation.
Wiki javadoc Use textile entry format.
Add your comments here.
not
public static short not ( short first )
Expects a short that does not match the given expectation.
Parameters
TypeNameDescription
short first placeholder for the expectation.
Wiki javadoc Use textile entry format.
Add your comments here.
not
public static <T> T not ( T first )
Expects an Object that does not match the given expectation.
Parameters
TypeNameDescription
T first placeholder for the expectation.
Wiki javadoc Use textile entry format.
Add your comments here.
notNull
public static Object notNull ( )
Expects not null.
Wiki javadoc Use textile entry format.
Add your comments here.
or
public static boolean or ( boolean first, boolean second )
Expects a boolean that matches one of the given expectations.
Parameters
TypeNameDescription
boolean first placeholder for the first expectation.
boolean second placeholder for the second expectation.
Wiki javadoc Use textile entry format.
Add your comments here.
or
public static byte or ( byte first, byte second )
Expects a byte that matches one of the given expectations.
Parameters
TypeNameDescription
byte first placeholder for the first expectation.
byte second placeholder for the second expectation.
Wiki javadoc Use textile entry format.
Add your comments here.
or
public static char or ( char first, char second )
Expects a char that matches one of the given expectations.
Parameters
TypeNameDescription
char first placeholder for the first expectation.
char second placeholder for the second expectation.
Wiki javadoc Use textile entry format.

sdfsdf

or
public static double or ( double first, double second )
Expects a double that matches one of the given expectations.
Parameters
TypeNameDescription
double first placeholder for the first expectation.
double second placeholder for the second expectation.
Wiki javadoc Use textile entry format.
Add your comments here.
or
public static float or ( float first, float second )
Expects a float that matches one of the given expectations.
Parameters
TypeNameDescription
float first placeholder for the first expectation.
float second placeholder for the second expectation.
Wiki javadoc Use textile entry format.
Add your comments here.
or
public static int or ( int first, int second )
Expects an int that matches one of the given expectations.
Parameters
TypeNameDescription
int first placeholder for the first expectation.
int second placeholder for the second expectation.
Wiki javadoc Use textile entry format.
Add your comments here.
or
public static long or ( long first, long second )
Expects a long that matches one of the given expectations.
Parameters
TypeNameDescription
long first placeholder for the first expectation.
long second placeholder for the second expectation.
Wiki javadoc Use textile entry format.
Add your comments here.
or
public static short or ( short first, short second )
Expects a short that matches one of the given expectations.
Parameters
TypeNameDescription
short first placeholder for the first expectation.
short second placeholder for the second expectation.
Wiki javadoc Use textile entry format.
Add your comments here.
or
public static <T> T or ( T first, T second )
Expects an Object that matches one of the given expectations.
Parameters
TypeNameDescription
T first placeholder for the first expectation.
T second placeholder for the second expectation.
Wiki javadoc Use textile entry format.
Add your comments here.
replay
public static void replay ( Object ... [] mocks )
Switches the given mock objects (more exactly: the controls of the mock objects) to replay mode. For details, see the EasyMock documentation.
Parameters
TypeNameDescription
Object ...[] mocks the mock objects.
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
reportMatcher
public static void reportMatcher ( IArgumentMatcher matcher )
Reports an argument matcher. This method is needed to define own argument matchers. For details, see the EasyMock documentation. For
Parameters
TypeNameDescription
IArgumentMatcher matcher No description provided.
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
reset
public static void reset ( Object ... [] mocks )
Resets the given mock objects (more exactly: the controls of the mock objects). For details, see the EasyMock documentation.
Parameters
TypeNameDescription
Object ...[] mocks the mock objects.
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
same
public static <T> T same ( T value )
Expects an Object that is the same as the given value. For details, see the EasyMock documentation.
Parameters
TypeNameDescription
T value the given value.
Wiki javadoc Use textile entry format.
Add your comments here.
startsWith
public static String startsWith ( String prefix )
Expects a string that starts with the given prefix. For details, see the EasyMock documentation.
Parameters
TypeNameDescription
String prefix the prefix.
Wiki javadoc Use textile entry format.
Add your comments here.
verify
public static void verify ( Object ... [] mocks )
Verifies the given mock objects (more exactly: the controls of the mock objects).
Parameters
TypeNameDescription
Object ...[] mocks the mock objects.
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.