|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<SignaturePartElementCreationStrategy>
org.mockcentral.editor.nodes.expectation.part.SignaturePartElementCreationStrategy
public enum SignaturePartElementCreationStrategy
An enum declaring the available strategies for building method signature parts based on various input.
| Enum Constant Summary | |
|---|---|
ANY_PARAMS
Strategy for use when "any" parameters are to be accepted by the method expectation. |
|
DEDUCE_PARAMS
Strategy for use when the method parameters are to be deduced according to the method signature. |
|
DEDUCE_RESULT
Strategy for use when the expected result is to be deduced according to the method signature. |
|
DEDUCE_THROWABLE_RESULT
Strategy for use when the throwable expected result is to be deduced according to the "throws" clause of the method signature. |
|
USE_NULL_PARAMS
Strategy for use when null values can be used for any non-primitive parameters. |
|
USE_NULL_RESULT
Strategy for use when a null value can be used for the method result. |
|
USE_SUPPLIED_THROWABLE_RESULT
Strategy for use when a specific throwable class has been supplied to use for the result. |
|
| Method Summary | |
|---|---|
java.lang.String |
getLabel()
Returns the label for this value. |
static SignaturePartElementCreationStrategy |
getStrategy(java.lang.String label)
Returns the enum value identified by the supplied label. |
static SignaturePartElementCreationStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static SignaturePartElementCreationStrategy[] |
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 SignaturePartElementCreationStrategy ANY_PARAMS
public static final SignaturePartElementCreationStrategy DEDUCE_PARAMS
public static final SignaturePartElementCreationStrategy USE_NULL_PARAMS
public static final SignaturePartElementCreationStrategy DEDUCE_RESULT
public static final SignaturePartElementCreationStrategy USE_NULL_RESULT
public static final SignaturePartElementCreationStrategy DEDUCE_THROWABLE_RESULT
public static final SignaturePartElementCreationStrategy USE_SUPPLIED_THROWABLE_RESULT
| Method Detail |
|---|
public static SignaturePartElementCreationStrategy[] values()
for (SignaturePartElementCreationStrategy c : SignaturePartElementCreationStrategy.values()) System.out.println(c);
public static SignaturePartElementCreationStrategy 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 static SignaturePartElementCreationStrategy getStrategy(java.lang.String label)
label - the label for the value.
public java.lang.String getLabel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||