Package org.junit.platform.engine
Interface DiscoveryIssue
@API(status=EXPERIMENTAL,
since="1.13")
public interface DiscoveryIssue
DiscoveryIssue represents an issue that was encountered during test
discovery by a TestEngine.- Since:
- 1.13
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder for creating aDiscoveryIssue.static enumThe severity of aDiscoveryIssue. -
Method Summary
Modifier and TypeMethodDescriptionstatic DiscoveryIssue.Builderbuilder(DiscoveryIssue.Severity severity, String message) Create a newDiscoveryIssue.Builderfor creating aDiscoveryIssuewith the suppliedDiscoveryIssue.Severityand message.cause()Returns the cause of this issue.static DiscoveryIssuecreate(DiscoveryIssue.Severity severity, String message) Create a newDiscoveryIssuewith the suppliedDiscoveryIssue.Severityand message.message()Returns the message of this issue.severity()Returns the severity of this issue.source()Returns the source of this issue.default DiscoveryIssuewithMessage(UnaryOperator<String> messageModifier) Create a copy of this issue with the modified message produced by the supplied operator.
-
Method Details
-
create
Create a newDiscoveryIssuewith the suppliedDiscoveryIssue.Severityand message.- Parameters:
severity- the severity of the issue; nevernullmessage- the message of the issue; never blank- See Also:
-
builder
Create a newDiscoveryIssue.Builderfor creating aDiscoveryIssuewith the suppliedDiscoveryIssue.Severityand message.- Parameters:
severity- the severity of the issue; nevernullmessage- 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.
-