|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<MockMethodType>
org.mockcentral.server.MockMethodType
public enum MockMethodType
An enum declaring the available Mock Object method types
("expect and return", "match and throw", etc) to use in the construction of
MethodExpectationBean instances.
| Enum Constant Summary | |
|---|---|
EXPECT_AND_RETURN
The method will expect an invocation and optionally return a value. |
|
EXPECT_AND_THROW
The method will expect an invocation and throw a Throwable. |
|
MATCH_AND_RETURN
The method will accept any invocation and optionally return a value. |
|
MATCH_AND_THROW
The method will accept any invocation and throw a Throwable. |
|
| Method Summary | |
|---|---|
java.lang.String |
getLabel()
Returns the label for this Enum value. |
static MockMethodType |
getMethodType(java.lang.String label)
Returns the MockMethodType corresponding to the supplied
label. |
static MockMethodType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static MockMethodType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final MockMethodType EXPECT_AND_RETURN
public static final MockMethodType EXPECT_AND_THROW
Throwable.
public static final MockMethodType MATCH_AND_RETURN
public static final MockMethodType MATCH_AND_THROW
Throwable.
| Method Detail |
|---|
public static MockMethodType[] values()
for (MockMethodType c : MockMethodType.values()) System.out.println(c);
public static MockMethodType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic java.lang.String getLabel()
public static MockMethodType getMethodType(java.lang.String label)
throws MockCentralServerException
MockMethodType corresponding to the supplied
label.
label - the label for the MockMethodType
MockMethodType corresponding to the supplied
label.
MockCentralServerException - if there is no MockMethodType with the supplied
label.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||