Package org.junit.platform.engine
Class DefaultDiscoveryIssue
- java.lang.Object
-
- org.junit.platform.engine.DefaultDiscoveryIssue
-
- All Implemented Interfaces:
DiscoveryIssue
final class DefaultDiscoveryIssue extends java.lang.Object implements DiscoveryIssue
- Since:
- 1.13
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classDefaultDiscoveryIssue.Builder-
Nested classes/interfaces inherited from interface org.junit.platform.engine.DiscoveryIssue
DiscoveryIssue.Severity
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Throwablecauseprivate java.lang.Stringmessageprivate DiscoveryIssue.Severityseverityprivate TestSourcesource
-
Constructor Summary
Constructors Constructor Description DefaultDiscoveryIssue(DefaultDiscoveryIssue.Builder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.lang.Throwable>cause(){@return the cause of this issue}booleanequals(java.lang.Object o)inthashCode()java.lang.Stringmessage(){@return the message of this issue}DiscoveryIssue.Severityseverity(){@return the severity of this issue}java.util.Optional<TestSource>source(){@return the source of this issue}java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.junit.platform.engine.DiscoveryIssue
withMessage
-
-
-
-
Field Detail
-
severity
private final DiscoveryIssue.Severity severity
-
message
private final java.lang.String message
-
source
private final TestSource source
-
cause
private final java.lang.Throwable cause
-
-
Constructor Detail
-
DefaultDiscoveryIssue
DefaultDiscoveryIssue(DefaultDiscoveryIssue.Builder builder)
-
-
Method Detail
-
severity
public DiscoveryIssue.Severity severity()
Description copied from interface:DiscoveryIssue{@return the severity of this issue}- Specified by:
severityin interfaceDiscoveryIssue
-
message
public java.lang.String message()
Description copied from interface:DiscoveryIssue{@return the message of this issue}- Specified by:
messagein interfaceDiscoveryIssue
-
source
public java.util.Optional<TestSource> source()
Description copied from interface:DiscoveryIssue{@return the source of this issue}- Specified by:
sourcein interfaceDiscoveryIssue
-
cause
public java.util.Optional<java.lang.Throwable> cause()
Description copied from interface:DiscoveryIssue{@return the cause of this issue}- Specified by:
causein interfaceDiscoveryIssue
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-