Top Description Fields Constructors Methods
org.easymock

public Class EasyMock

extends Object
Class Inheritance
Imports
org.easymock.internal.*, org.easymock.internal.matchers.*, java.util.Comparator

Main EasyMock class. Contains methods to create, replay and verify mocks and a list of standard matchers.
Authors
OFFIS, Tammo Freese, Henri Tremblay

Field Summary

Modifier and TypeField and Description
public static final String
DISABLE_CLASS_MOCKING

Since EasyMock 3.0, EasyMock can perform class mocking directly without using the class extension.

public static final String
ENABLE_THREAD_SAFETY_CHECK_BY_DEFAULT

Since EasyMock 2.4, by default, a mock wasn't allowed to be called in multiple threads unless it was made thread-safe (See makeThreadSafe(Object, boolean) method).

public static final String
NOT_THREAD_SAFE_BY_DEFAULT

Since EasyMock 2.5, by default a mock is thread-safe.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static boolean

Returns:

false.
and
(boolean
placeholder for the first expectation.
first
,
boolean
placeholder for the second expectation.
second
)

Expects a boolean that matches both given expectations.

public static byte

Returns:

0.
and
(byte
placeholder for the first expectation.
first
,
byte
placeholder for the second expectation.
second
)

Expects a byte that matches both given expectations.

public static char

Returns:

0.
and
(char
placeholder for the first expectation.
first
,
char
placeholder for the second expectation.
second
)

Expects a char that matches both given expectations.

public static double

Returns:

0.
and
(double
placeholder for the first expectation.
first
,
double
placeholder for the second expectation.
second
)

Expects a double that matches both given expectations.

public static float

Returns:

0.
and
(float
placeholder for the first expectation.
first
,
float
placeholder for the second expectation.
second
)

Expects a float that matches both given expectations.

public static int

Returns:

0.
and
(int
placeholder for the first expectation.
first
,
int
placeholder for the second expectation.
second
)

Expects an int that matches both given expectations.

public static long

Returns:

0.
and
(long
placeholder for the first expectation.
first
,
long
placeholder for the second expectation.
second
)

Expects a long that matches both given expectations.

public static short

Returns:

0.
and
(short
placeholder for the first expectation.
first
,
short
placeholder for the second expectation.
second
)

Expects a short that matches both given expectations.

public static <
the type of the object, it is passed through to prevent casts.
T
>
T

Returns:

null.
and
(T
placeholder for the first expectation.
first
,
T
placeholder for the second expectation.
second
)

Expects an Object that matches both given expectations.

public static boolean

Returns:

false.
anyBoolean
()

Expects any boolean argument.

public static byte

Returns:

0.
anyByte
()

Expects any byte argument.

public static char

Returns:

0.
anyChar
()

Expects any char argument.

public static double

Returns:

0.
anyDouble
()

Expects any double argument.

public static float

Returns:

0.
anyFloat
()

Expects any float argument.

public static int

Returns:

0.
anyInt
()

Expects any int argument.

public static long

Returns:

0.
anyLong
()

Expects any long argument.

public static <
type of the method argument to match
T
>
T

Returns:

null.
anyObject
()

Expects any Object argument.

public static <
type of the method argument to match
T
>
T

Returns:

null.
anyObject
(Class<T>
the class of the argument to match
clazz
)

Expects any Object argument.

public static short

Returns:

0.
anyShort
()

Expects any short argument.

public static String

Returns:

null.
anyString
()

Expect any string whatever its content is.

public static boolean[]

Returns:

null.
aryEq
(boolean[]
the given array.
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.

public static byte[]

Returns:

null.
aryEq
(byte[]
the given array.
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.

public static char[]

Returns:

null.
aryEq
(char[]
the given array.
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.

public static double[]

Returns:

null.
aryEq
(double[]
the given array.
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.

public static float[]

Returns:

null.
aryEq
(float[]
the given array.
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.

public static int[]

Returns:

null.
aryEq
(int[]
the given array.
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.

public static long[]

Returns:

null.
aryEq
(long[]
the given array.
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.

public static short[]

Returns:

null.
aryEq
(short[]
the given array.
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.

public static <
the type of the array, it is passed through to prevent casts.
T
>
T[]

Returns:

null.
aryEq
(T[]
the given array.
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.

public static <
Type of the captured object
T
>
T

Returns:

null
capture
(Capture<T>
Where the parameter is captured
captured
)

Expect any object but captures it for later use.

public static boolean

Returns:

false
captureBoolean
(Capture<Boolean>
Where the parameter is captured
captured
)

Expect any boolean but captures it for later use.

public static byte

Returns:

0
captureByte
(Capture<Byte>
Where the parameter is captured
captured
)

Expect any byte but captures it for later use.

public static char

Returns:

0
captureChar
(Capture<Character>
Where the parameter is captured
captured
)

Expect any char but captures it for later use.

public static double

Returns:

0
captureDouble
(Capture<Double>
Where the parameter is captured
captured
)

Expect any double but captures it for later use.

public static float

Returns:

0
captureFloat
(Capture<Float>
Where the parameter is captured
captured
)

Expect any float but captures it for later use.

public static int

Returns:

0
captureInt
(Capture<Integer>
Where the parameter is captured
captured
)

Expect any int but captures it for later use.

public static long

Returns:

0
captureLong
(Capture<Long>
Where the parameter is captured
captured
)

Expect any long but captures it for later use.

public static void
checkIsUsedInOneThread(Object
the mock
mock
,
boolean
If the mock should be used in only one thread
shouldBeUsedInOneThread
)

Tell that the mock should be used in only one thread.

public static void
checkOrder(Object
the mock object.
mock
,
boolean
true switches order checking on, false switches it off.
state
)

Switches order checking of the given mock object (more exactly: the control of the mock object) the on and off.

public static <
type of the method argument to match
T
>
T

Returns:

null
cmp
(T
the given value.
value
,
Comparator<? super T>
Comparator used to compare the actual with expected value.
comparator
,
LogicalOperator
The comparison operator.
operator
)

Expects an argument that will be compared using the provided comparator.

public static <
type of the method argument to match
T extends Comparable<T>
>
T

Returns:

null.
cmpEq
(T
the given value.
value
)

Expects a comparable argument equals to the given value according to their compareTo method.

public static String

Returns:

null.
contains
(String
the substring.
substring
)

Expects a string that contains the given substring.

public static IMocksControl

Returns:

the control.
createControl
(MockType
the mock type
type
)

Creates a control of the requested type.

public static IMocksControl

Returns:

the control.
createControl
()

Creates a control, order checking is disabled by default.

public static <
the class or interface that the mock object should extend/implement. It is expected to be of class toMock.
T
>
T

Returns:

the mock object.
createMock
(MockType
the type of the mock to be created.
type
,
Class<?>
the class or interface that should be mocked.
toMock
)

Creates a mock object, of the requested type, that implements the given interface or extends the given class.

public static <
the class or interface that the mock object should extend/implement. It is expected to be of class toMock.
T
>
T

Returns:

the mock object.
createMock
(String
the name of the mock object.
name
,
MockType
the type of the mock to be created.
type
,
Class<?>
the class or interface that should be mocked.
toMock
)

Creates a mock object, of the requested type and name, that implements the given interface or extends the given class

Note

This is the old version of mock(String, MockType, Class), which is more completion friendly

public static <
the class or interface that the mock object should extend/implement. It is expected to be of class toMock.
T
>
T

Returns:

the mock object.
createMock
(Class<?>
the class or interface that should be mocked.
toMock
)

Creates a mock object that implements the given interface, order checking is disabled by default.

public static <
the class or interface that the mock object should extend/implement. It is expected to be of class toMock.
T
>
T

Returns:

the mock object.
createMock
(String
the name of the mock object.
name
,
Class<?>
the class or interface that should be mocked.
toMock
)

Creates a mock object that implements the given interface, order checking is disabled by default.

public static <
the class or interface that the mock object should extend/implement. It is expected to be of class toMock.
T
>
IMockBuilder<T>

Returns:

a mock builder to create a partial mock
createMockBuilder
(Class<?>
the class or interface that should be mocked.
toMock
)

Create a mock builder allowing to create a partial mock for the given class or interface.

public static IMocksControl

Returns:

the control.
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.

public static <
the class or interface that the mock object should extend/implement. It is expected to be of class toMock.
T
>
T

Returns:

the mock object.
createNiceMock
(Class<?>
the class or interface that should be mocked.
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.

public static <
the class or interface that the mock object should extend/implement. It is expected to be of class toMock.
T
>
T

Returns:

the mock object.
createNiceMock
(String
the name of the mock object.
name
,
Class<?>
the class or interface that should be mocked.
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.

public static IMocksControl

Returns:

the control.
createStrictControl
()

Creates a control, order checking is enabled by default.

public static <
the class or interface that the mock object should extend/implement. It is expected to be of class toMock.
T
>
T

Returns:

the mock object.
createStrictMock
(Class<?>
the class or interface that should be mocked.
toMock
)

Creates a mock object that implements the given interface, order checking is enabled by default.

public static <
the class or interface that the mock object should extend/implement. It is expected to be of class toMock.
T
>
T

Returns:

the mock object.
createStrictMock
(String
the name of the mock object.
name
,
Class<?>
the class or interface that should be mocked.
toMock
)

Creates a mock object that implements the given interface, order checking is enabled by default.

public static String

Returns:

null.
endsWith
(String
the suffix.
suffix
)

Expects a string that ends with the given suffix.

public static boolean

Returns:

0.
eq
(boolean
the given value.
value
)

Expects a boolean that is equal to the given value.

public static byte

Returns:

0.
eq
(byte
the given value.
value
)

Expects a byte that is equal to the given value.

public static char

Returns:

0.
eq
(char
the given value.
value
)

Expects a char that is equal to the given value.

public static double

Returns:

0.
eq
(double
the given value.
value
)

Expects a double that is equal to the given value.

public static float

Returns:

0.
eq
(float
the given value.
value
)

Expects a float that is equal to the given value.

public static int

Returns:

0.
eq
(int
the given value.
value
)

Expects an int that is equal to the given value.

public static long

Returns:

0.
eq
(long
the given value.
value
)

Expects a long that is equal to the given value.

public static short

Returns:

0.
eq
(short
the given value.
value
)

Expects a short that is equal to the given value.

public static <
type of the method argument to match
T
>
T

Returns:

null.
eq
(T
the given value.
value
)

Expects an Object that is equal to the given value.

public static double

Returns:

0.
eq
(double
the given value.
value
,
double
the given delta.
delta
)

Expects a double that has an absolute difference to the given value that is less than the given delta.

public static float

Returns:

0.
eq
(float
the given value.
value
,
float
the given delta.
delta
)

Expects a float that has an absolute difference to the given value that is less than the given delta.

public static <
type returned by the expected method
T
>
IExpectationSetters<T>

Returns:

the expectation setter.
expect
(T
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").
value
)

Returns the expectation setter for the last expected invocation in the current thread.

public static <
type returned by the expected method
T
>
IExpectationSetters<T>

Returns:

the expectation setter.
expectLastCall
()

Returns the expectation setter for the last expected invocation in the current thread.

public static String

Returns:

null.
find
(String
the regular expression.
regex
)

Expects a string that contains a substring that matches the given regular expression.

public static <
type of the method argument to match
T extends Comparable<T>
>
T

Returns:

null.
geq
(T
the given value.
value
)

Expects a comparable argument greater than or equal the given value.

public static byte

Returns:

0.
geq
(byte
the given value.
value
)

Expects a byte argument greater than or equal to the given value.

public static double

Returns:

0.
geq
(double
the given value.
value
)

Expects a double argument greater than or equal to the given value.

public static float

Returns:

0.
geq
(float
the given value.
value
)

Expects a float argument greater than or equal to the given value.

public static int

Returns:

0.
geq
(int
the given value.
value
)

Expects an int argument greater than or equal to the given value.

public static long

Returns:

0.
geq
(long
the given value.
value
)

Expects a long argument greater than or equal to the given value.

public static short

Returns:

0.
geq
(short
the given value.
value
)

Expects a short argument greater than or equal to the given value.

private static AssertionError
getAssertionError(int length, int i, AssertionError e)

private static MocksControl
private static <T> IExpectationSetters<T>
public static <T> T
getCurrentArgument(int index)

public static Object[]

Returns:

the arguments of the current mock method call.
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.

public static String

Returns:

the property value
getEasyMockProperty
(String
key for the property
key
)

Get the current value for an EasyMock property

private static RuntimeException
getRuntimeException(int length, int i, RuntimeException e)

public static <
type of the method argument to match
T extends Comparable<T>
>
T

Returns:

null.
gt
(T
the given value.
value
)

Expects a comparable argument greater than the given value.

public static byte

Returns:

0.
gt
(byte
the given value.
value
)

Expects a byte argument greater than the given value.

public static double

Returns:

0.
gt
(double
the given value.
value
)

Expects a double argument greater than the given value.

public static float

Returns:

0.
gt
(float
the given value.
value
)

Expects a float argument greater than the given value.

public static int

Returns:

0.
gt
(int
the given value.
value
)

Expects an int argument greater than the given value.

public static long

Returns:

0.
gt
(long
the given value.
value
)

Expects a long argument greater than the given value.

public static short

Returns:

0.
gt
(short
the given value.
value
)

Expects a short argument greater than the given value.

public static <
the accepted type.
T
>
T

Returns:

null.
isA
(Class<T>
the class of the accepted type.
clazz
)

Expects an object implementing the given class.

public static <
type of the method argument to match
T
>
T

Returns:

null.
isNull
()

Expects null.

public static <
type of the method argument to match
T
>
T

Returns:

null.
isNull
(Class<T>
the class of the argument to match
clazz
)

Expects null.

public static <
type of the method argument to match
T extends Comparable<T>
>
T

Returns:

null.
leq
(T
the given value.
value
)

Expects a comparable argument less than or equal the given value.

public static byte

Returns:

0.
leq
(byte
the given value.
value
)

Expects a byte argument less than or equal to the given value.

public static double

Returns:

0.
leq
(double
the given value.
value
)

Expects a double argument less than or equal to the given value.

public static float

Returns:

0.
leq
(float
the given value.
value
)

Expects a float argument less than or equal to the given value.

public static int

Returns:

0.
leq
(int
the given value.
value
)

Expects an int argument less than or equal to the given value.

public static long

Returns:

0.
leq
(long
the given value.
value
)

Expects a long argument less than or equal to the given value.

public static short

Returns:

0.
leq
(short
the given value.
value
)

Expects a short argument less than or equal to the given value.

public static <
type of the method argument to match
T extends Comparable<T>
>
T

Returns:

null.
lt
(T
the given value.
value
)

Expects a comparable argument less than the given value.

public static byte

Returns:

0.
lt
(byte
the given value.
value
)

Expects a byte argument less than the given value.

public static double

Returns:

0.
lt
(double
the given value.
value
)

Expects a double argument less than the given value.

public static float

Returns:

0.
lt
(float
the given value.
value
)

Expects a float argument less than the given value.

public static int

Returns:

0.
lt
(int
the given value.
value
)

Expects an int argument less than the given value.

public static long

Returns:

0.
lt
(long
the given value.
value
)

Expects a long argument less than the given value.

public static short

Returns:

0.
lt
(short
the given value.
value
)

Expects a short argument less than the given value.

public static void
makeThreadSafe(Object
the mock to make thread safe
mock
,
boolean
If the mock should be thread safe or not
threadSafe
)

By default, a mock is thread safe (unless NOT_THREAD_SAFE_BY_DEFAULT is set).

public static String

Returns:

null.
matches
(String
the regular expression.
regex
)

Expects a string that matches the given regular expression.

public static <
the class or interface that the mock object should extend/implement. It is expected to be of class toMock.
T
>
T

Returns:

the mock object.
mock
(Class<?>
the class or interface that should be mocked.
toMock
)

Creates a mock object that implements the given interface, order checking is disabled by default.

public static <
the class or interface that the mock object should extend/implement. It is expected to be of class toMock.
T
>
T

Returns:

the mock object.
mock
(String
the name of the mock object.
name
,
Class<?>
the class or interface that should be mocked.
toMock
)

Creates a mock object that implements the given interface, order checking is disabled by default.

public static <
the class or interface that the mock object should extend/implement. It is expected to be of class toMock.
T
>
T

Returns:

the mock object
mock
(MockType
the type of the mock to be created.
type
,
Class<?>
the class or interface that should be mocked.
toMock
)

Creates a mock object, of the requested type, that implements the given interface or extends the given class

public static <
the class or interface that the mock object should extend/implement. It is expected to be of class toMock.
T
>
T

Returns:

the mock object.
mock
(String
the name of the mock object.
name
,
MockType
the type of the mock to be created.
type
,
Class<?>
the class or interface that should be mocked.
toMock
)

Creates a mock object, of the requested type and name, that implements the given interface or extends the given class

public static <
type of the class to be captured
T
>
Capture<T>

Returns:

the new capture object
newCapture
()

Create a new capture instance that will keep only the last captured value.

public static <
type of the class to be captured
T
>
Capture<T>

Returns:

the new capture object
newCapture
(CaptureType
capture type wanted
type
)

Create a new capture instance with a specific org.easymock.CaptureType

public static <
the class or interface that the mock object should extend/implement. It is expected to be of class toMock.
T
>
T

Returns:

the mock object.
niceMock
(Class<?>
the class or interface that should be mocked.
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.

public static <
the class or interface that the mock object should extend/implement. It is expected to be of class toMock.
T
>
T

Returns:

the mock object.
niceMock
(String
the name of the mock object.
name
,
Class<?>
the class or interface that should be mocked.
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.

public static boolean

Returns:

false.
not
(boolean
placeholder for the expectation.
first
)

Expects a boolean that does not match the given expectation.

public static byte

Returns:

0.
not
(byte
placeholder for the expectation.
first
)

Expects a byte that does not match the given expectation.

public static char

Returns:

0.
not
(char
placeholder for the expectation.
first
)

Expects a char that does not match the given expectation.

public static double

Returns:

0.
not
(double
placeholder for the expectation.
first
)

Expects a double that does not match the given expectation.

public static float

Returns:

0.
not
(float
placeholder for the expectation.
first
)

Expects a float that does not match the given expectation.

public static int

Returns:

0.
not
(int
placeholder for the expectation.
first
)

Expects an int that does not match the given expectation.

public static long

Returns:

0.
not
(long
placeholder for the expectation.
first
)

Expects a long that does not match the given expectation.

public static short

Returns:

0.
not
(short
placeholder for the expectation.
first
)

Expects a short that does not match the given expectation.

public static <
the type of the object, it is passed through to prevent casts.
T
>
T

Returns:

null.
not
(T
placeholder for the expectation.
first
)

Expects an Object that does not match the given expectation.

public static <
type of the method argument to match
T
>
T

Returns:

null.
notNull
()

Expects not null.

public static <
type of the method argument to match
T
>
T

Returns:

null.
notNull
(Class<T>
the class of the argument to match
clazz
)

Expects not null.

public static boolean

Returns:

false.
or
(boolean
placeholder for the first expectation.
first
,
boolean
placeholder for the second expectation.
second
)

Expects a boolean that matches one of the given expectations.

public static byte

Returns:

0.
or
(byte
placeholder for the first expectation.
first
,
byte
placeholder for the second expectation.
second
)

Expects a byte that matches one of the given expectations.

public static char

Returns:

0.
or
(char
placeholder for the first expectation.
first
,
char
placeholder for the second expectation.
second
)

Expects a char that matches one of the given expectations.

public static double

Returns:

0.
or
(double
placeholder for the first expectation.
first
,
double
placeholder for the second expectation.
second
)

Expects a double that matches one of the given expectations.

public static float

Returns:

0.
or
(float
placeholder for the first expectation.
first
,
float
placeholder for the second expectation.
second
)

Expects a float that matches one of the given expectations.

public static int

Returns:

0.
or
(int
placeholder for the first expectation.
first
,
int
placeholder for the second expectation.
second
)

Expects an int that matches one of the given expectations.

public static long

Returns:

0.
or
(long
placeholder for the first expectation.
first
,
long
placeholder for the second expectation.
second
)

Expects a long that matches one of the given expectations.

public static short

Returns:

0.
or
(short
placeholder for the first expectation.
first
,
short
placeholder for the second expectation.
second
)

Expects a short that matches one of the given expectations.

public static <
the type of the object, it is passed through to prevent casts.
T
>
T

Returns:

null.
or
(T
placeholder for the first expectation.
first
,
T
placeholder for the second expectation.
second
)

Expects an Object that matches one of the given expectations.

public static <
the class that the mock object should extend.
T
>
IMockBuilder<T>

Returns:

a mock builder to create a partial mock
partialMockBuilder
(Class<?>
the class or interface that should be mocked.
toMock
)

Create a mock builder allowing to create a partial mock for the given class or interface.

public static void
replay(Object...
the mock objects.
mocks
)

Switches the given mock objects (more exactly: the controls of the mock objects) to replay mode.

public static void
reportMatcher(IArgumentMatcher
the matcher to use to match currently mocked method argument
matcher
)

Reports an argument matcher.

public static void
reset(Object...
the mock objects.
mocks
)

Resets the given mock objects (more exactly: the controls of the mock objects).

public static void
resetToDefault(Object...
the mock objects
mocks
)

Resets the given mock objects (more exactly: the controls of the mock objects) and turn them to a mock with default behavior.

public static void
resetToNice(Object...
the mock objects
mocks
)

Resets the given mock objects (more exactly: the controls of the mock objects) and turn them to a mock with nice behavior.

public static void
resetToStrict(Object...
the mock objects
mocks
)

Resets the given mock objects (more exactly: the controls of the mock objects) and turn them to a mock with strict behavior.

public static <
the type of the object, it is passed through to prevent casts.
T
>
T

Returns:

null.
same
(T
the given value.
value
)

Expects an Object that is the same as the given value.

public static String

Returns:

the previous property value
setEasyMockProperty
(String
property key
key
,
String
property value. A null value will remove the property
value
)

Set a property to modify the default EasyMock behavior.

public static String

Returns:

null.
startsWith
(String
the prefix.
prefix
)

Expects a string that starts with the given prefix.

public static <
the class or interface that the mock object should extend/implement. It is expected to be of class toMock.
T
>
T

Returns:

the mock object.
strictMock
(Class<?>
the class or interface that should be mocked.
toMock
)

Creates a mock object that implements the given interface, order checking is enabled by default.

public static <
the class or interface that the mock object should extend/implement. It is expected to be of class toMock.
T
>
T

Returns:

the mock object.
strictMock
(String
the name of the mock object.
name
,
Class<?>
the class or interface that should be mocked.
toMock
)

Creates a mock object that implements the given interface, order checking is enabled by default.

public static void
verify(Object...
the mock objects.
mocks
)

Verifies that all expectations were met and that no unexpected call was performed on the mock objects.

public static void
verifyRecording(Object...
the mock objects.
mocks
)

Verifies that all expectations were met.

public static void
verifyUnexpectedCalls(Object...
the mock objects.
mocks
)

Verifies that no unexpected call was performed.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait