DiscoveryIssue
represents an issue that was encountered during test
discovery by a TestEngine
.- Since:
- 1.13
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Builder for creating aDiscoveryIssue
.static enum
The severity of aDiscoveryIssue
. -
Method Summary
Modifier and TypeMethodDescriptionstatic DiscoveryIssue.Builder
builder
(DiscoveryIssue.Severity severity, String message) Create a newDiscoveryIssue.Builder
for creating aDiscoveryIssue
with the suppliedDiscoveryIssue.Severity
and message.cause()
Returns the cause of this issue.static DiscoveryIssue
create
(DiscoveryIssue.Severity severity, String message) Create a newDiscoveryIssue
with the suppliedDiscoveryIssue.Severity
and message.message()
Returns the message of this issue.severity()
Returns the severity of this issue.source()
Returns the source of this issue.default DiscoveryIssue
withMessage
(UnaryOperator<String> messageModifier) Create a copy of this issue with the modified message produced by the supplied operator.
-
Method Details
-
create
Create a newDiscoveryIssue
with the suppliedDiscoveryIssue.Severity
and message.- Parameters:
severity
- the severity of the issue; nevernull
message
- the message of the issue; never blank- See Also:
-
builder
Create a newDiscoveryIssue.Builder
for creating aDiscoveryIssue
with the suppliedDiscoveryIssue.Severity
and message.- Parameters:
severity
- the severity of the issue; nevernull
message
- the message of the issue; never blank- See Also:
-
severity
DiscoveryIssue.Severity severity()Returns the severity of this issue.- Returns:
- the severity of this issue
-
message
String message()Returns the message of this issue.- Returns:
- the message of this issue
-
source
Optional<TestSource> source()Returns the source of this issue.- Returns:
- the source of this issue
-
cause
Returns the cause of this issue.- Returns:
- the cause of this issue
-
withMessage
Create a copy of this issue with the modified message produced by the supplied operator.
-