public static enum TestDescriptor.Type extends java.lang.Enum<TestDescriptor.Type>
TestDescriptors
.Enum Constant | Description |
---|---|
CONTAINER |
Denotes that the
TestDescriptor is for a container. |
CONTAINER_AND_TEST |
Denotes that the
TestDescriptor is for a test
that may potentially also be a container. |
TEST |
Denotes that the
TestDescriptor is for a test. |
Modifier and Type | Method | Description |
---|---|---|
boolean |
isContainer() |
|
boolean |
isTest() |
|
static TestDescriptor.Type |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static TestDescriptor.Type[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TestDescriptor.Type CONTAINER
TestDescriptor
is for a container.public static final TestDescriptor.Type TEST
TestDescriptor
is for a test.public static final TestDescriptor.Type CONTAINER_AND_TEST
TestDescriptor
is for a test
that may potentially also be a container.public static TestDescriptor.Type[] values()
for (TestDescriptor.Type c : TestDescriptor.Type.values()) System.out.println(c);
public static TestDescriptor.Type 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 boolean isContainer()
true
if this type represents a descriptor that can
contain other descriptorspublic boolean isTest()
true
if this type represents a descriptor for a test