Top Description Fields Constructors Methods
org.easymock

public final Enum MockType

extends Enum<MockType>
Class Inheritance

Enum describing the 3 possibles kind of mocks
Author
Henri Tremblay
Since
3.2

Field Summary

Modifier and TypeField and Description
public static final MockType
DEFAULT

A default mock expects only recorded calls but in any order

public static final MockType
NICE

A nice mock expects recorded calls in any order and returning null for other calls

public static final MockType
STRICT

A strict mock expects only recorded calls and they should be replayed in their recorded order

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static MockType
public static MockType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

DEFAULTback to summary
public static final MockType DEFAULT

A default mock expects only recorded calls but in any order

NICEback to summary
public static final MockType NICE

A nice mock expects recorded calls in any order and returning null for other calls

STRICTback to summary
public static final MockType STRICT

A strict mock expects only recorded calls and they should be replayed in their recorded order

Constructor Detail

MockTypeback to summary
private MockType()

Method Detail

valueOfback to summary
public static MockType valueOf(String name)
valuesback to summary
public static MockType[] values()