public enum PathComparator extends java.lang.Enum<PathComparator> implements ToNode
Enum Constant and Description |
---|
ALL_STRING_EQUALS
Matches if all values in the list matches the expected string.
|
ANY_STRING_EQUALS
Matches if any value in the list matches the expected string.
|
BOOLEAN_EQUALS
Matches if the return value is a boolean that is equal to the string literal 'true' or 'false'.
|
STRING_EQUALS
Matches if the return value is a string that is equal to the expected string.
|
Modifier and Type | Method and Description |
---|---|
static PathComparator |
fromNode(Node node)
Creates a
PathComparator from a Node . |
Node |
toNode()
Converts a value to a
Node . |
java.lang.String |
toString() |
static PathComparator |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PathComparator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PathComparator ALL_STRING_EQUALS
public static final PathComparator ANY_STRING_EQUALS
public static final PathComparator STRING_EQUALS
public static final PathComparator BOOLEAN_EQUALS
public static PathComparator[] values()
for (PathComparator c : PathComparator.values()) System.out.println(c);
public static PathComparator 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 namejava.lang.NullPointerException
- if the argument is nullpublic static PathComparator fromNode(Node node)
PathComparator
from a Node
.node
- Node to create the PathComparator
from.PathComparator
.ExpectationNotMetException
- if the given node
is invalid.public java.lang.String toString()
toString
in class java.lang.Enum<PathComparator>