TestPlan.
TestPlan
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final String | |
| private final @Nullable UniqueId | |
| private static final long | |
| private final @Nullable TestSource | |
| private final Set | |
| private final TestDescriptor. | |
| private final UniqueId |
| Access | Constructor and Description |
|---|---|
| private | TestIdentifier(UniqueId uniqueId, String displayName, @Nullable TestSource source, Set<TestTag> tags, TestDescriptor.
|
| Modifier and Type | Method and Description |
|---|---|
| private Set | |
| public boolean | equals(Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public static TestIdentifier | |
| public String | Returns: the display name for this identifier; nevernull or blankGet the display name of the represented test or container. |
| public String | Returns: the legacy reporting name; nevernull or blankGet the name of this identifier in a format that is suitable for legacy reporting infrastructure — for example, for reporting systems built on the Ant-based XML reporting format for JUnit 4. |
| public Optional | Returns: a container for the unique ID for this identifier's parent; nevernull though potentially emptyGet the unique ID of this identifier's parent as a |
| public Optional | Returns: a container for the unique ID for this identifier's parent; nevernull though potentially emptyGet the unique ID of this identifier's parent as a |
| public Optional | |
| public Set | |
| public TestDescriptor. | |
| public String | Returns: the unique ID for this identifier; nevernullGet the unique ID of the represented test or container as a
|
| public UniqueId | Returns: the unique ID for this identifier; nevernullGet the unique ID of the represented test or container as a
|
| public int | |
| public boolean | Returns: true if the underlying descriptor type represents a container,
false otherwiseDetermine if this identifier represents a container. |
| public boolean | Returns: true if the underlying descriptor type represents a test,
false otherwiseDetermine if this identifier represents a test. |
| public String |
| displayName | back to summary |
|---|---|
| private final String displayName | |
| legacyReportingName | back to summary |
|---|---|
| private final String legacyReportingName | |
| parentId | back to summary |
|---|---|
| private final @Nullable UniqueId parentId | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID
| |
| source | back to summary |
|---|---|
| private final @Nullable TestSource source | |
| tags | back to summary |
|---|---|
private final Set<TestTag> tags
| |
| type | back to summary |
|---|---|
| private final TestDescriptor. | |
| uniqueId | back to summary |
|---|---|
| private final UniqueId uniqueId | |
| TestIdentifier | back to summary |
|---|---|
| private TestIdentifier(UniqueId uniqueId, String displayName, @Nullable TestSource source, Set<TestTag> tags, TestDescriptor. | |
| copyOf | back to summary |
|---|---|
| private Set | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| from | back to summary |
|---|---|
| public static TestIdentifier from(TestDescriptor testDescriptor) Factory for creating a new | |
| getDisplayName | back to summary |
|---|---|
| public String getDisplayName() Get the display name of the represented test or container. A display name is a human-readable name for a test or
container that is typically used for test reporting in IDEs and build
tools. Display names may contain spaces, special characters, and emoji,
and the format may be customized by
| |
| getLegacyReportingName | back to summary |
|---|---|
| public String getLegacyReportingName() Get the name of this identifier in a format that is suitable for legacy reporting infrastructure — for example, for reporting systems built on the Ant-based XML reporting format for JUnit 4. The default implementation delegates to
| |
| getParentId | back to summary |
|---|---|
| public Optional Get the unique ID of this identifier's parent as a An identifier without a parent is called a root. | |
| getParentIdObject | back to summary |
|---|---|
| public Optional Get the unique ID of this identifier's parent as a An identifier without a parent is called a root. | |
| getSource | back to summary |
|---|---|
| public Optional Get the source of the represented test or container, if available.
| |
| getTags | back to summary |
|---|---|
| public Set Get the set of tags associated with the represented test or container.
| |
| getType | back to summary |
|---|---|
| public TestDescriptor. Get the underlying descriptor type.
| |
| getUniqueId | back to summary |
|---|---|
| public String getUniqueId() Get the unique ID of the represented test or container as a
Uniqueness must be guaranteed across an entire test plan, regardless of how many engines are used behind the scenes.
| |
| getUniqueIdObject | back to summary |
|---|---|
| public UniqueId getUniqueIdObject() Get the unique ID of the represented test or container as a
Uniqueness must be guaranteed across an entire test plan, regardless of how many engines are used behind the scenes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isContainer | back to summary |
|---|---|
| public boolean isContainer() Determine if this identifier represents a container.
| |
| isTest | back to summary |
|---|---|
| public boolean isTest() Determine if this identifier represents a test.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |