Package org.easymock.internal
Class ClassMockingData
- java.lang.Object
-
- org.easymock.internal.ClassMockingData
-
- All Implemented Interfaces:
java.io.Serializable
public final class ClassMockingData extends java.lang.Object implements java.io.SerializableClass containing the data required for a class mock to work.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.reflect.InvocationHandlerhandlerInvocation handler that will intercept all callsprivate java.util.Set<java.lang.reflect.Method>mockedMethodsList of mocked methods.private static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description ClassMockingData(java.lang.reflect.InvocationHandler handler, java.lang.reflect.Method... mockedMethods)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.reflect.InvocationHandlerhandler()booleanisMocked(java.lang.reflect.Method method)private voidreadObject(java.io.ObjectInputStream stream)private voidwriteObject(java.io.ObjectOutputStream stream)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
handler
private final java.lang.reflect.InvocationHandler handler
Invocation handler that will intercept all calls
-
mockedMethods
private transient java.util.Set<java.lang.reflect.Method> mockedMethods
List of mocked methods. Null is everything is mocked. Abstract methods won't appear in this list since they are always mocked.
-
-
Method Detail
-
isMocked
public boolean isMocked(java.lang.reflect.Method method)
-
handler
public java.lang.reflect.InvocationHandler handler()
-
readObject
private void readObject(java.io.ObjectInputStream stream) throws java.io.IOException, java.lang.ClassNotFoundException- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
writeObject
private void writeObject(java.io.ObjectOutputStream stream) throws java.io.IOException- Throws:
java.io.IOException
-
-