Top Description Fields Constructors Methods
org.easymock.internal

public Class ClassMockingData

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.IOException, .Serializable, java.lang.reflect.InvocationHandler, .Method, .Modifier, java.util.Arrays, .HashSet, .Set

Class containing the data required for a class mock to work.

Field Summary

Modifier and TypeField and Description
private final InvocationHandler
handler

Invocation handler that will intercept all calls

private transient Set<Method>
mockedMethods

List of mocked methods.

private static final long

Constructor Summary

AccessConstructor and Description
public
ClassMockingData(InvocationHandler handler, Method... mockedMethods)

Method Summary

Modifier and TypeMethod and Description
public InvocationHandler
public boolean
isMocked(Method method)

private void
private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

handlerback to summary
private final InvocationHandler handler

Invocation handler that will intercept all calls

mockedMethodsback to summary
private transient Set<Method> mockedMethods

List of mocked methods. Null is everything is mocked. Abstract methods won't appear in this list since they are always mocked.

serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

ClassMockingDataback to summary
public ClassMockingData(InvocationHandler handler, Method... mockedMethods)

Method Detail

handlerback to summary
public InvocationHandler handler()
isMockedback to summary
public boolean isMocked(Method method)
readObjectback to summary
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
Annotations
@SuppressWarnings:unchecked
writeObjectback to summary
private void writeObject(ObjectOutputStream stream) throws IOException