Package tech.kronicle.sdk.models
Class TestResult
- java.lang.Object
-
- tech.kronicle.sdk.models.TestResult
-
public final class TestResult extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTestResult.TestResultBuilder
-
Constructor Summary
Constructors Constructor Description TestResult(java.lang.String testId, TestOutcome outcome, Priority priority, java.lang.String message)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TestResult.TestResultBuilderbuilder()booleanequals(java.lang.Object o)java.lang.StringgetMessage()TestOutcomegetOutcome()PrioritygetPriority()java.lang.StringgetTestId()inthashCode()TestResult.TestResultBuildertoBuilder()java.lang.StringtoString()TestResultwithMessage(java.lang.String message)TestResultwithOutcome(TestOutcome outcome)TestResultwithPriority(Priority priority)TestResultwithTestId(java.lang.String testId)
-
-
-
Constructor Detail
-
TestResult
@ConstructorProperties({"testId","outcome","priority","message"}) public TestResult(java.lang.String testId, TestOutcome outcome, Priority priority, java.lang.String message)
-
-
Method Detail
-
builder
public static TestResult.TestResultBuilder builder()
-
toBuilder
public TestResult.TestResultBuilder toBuilder()
-
getTestId
public java.lang.String getTestId()
-
getOutcome
public TestOutcome getOutcome()
-
getPriority
public Priority getPriority()
-
getMessage
public java.lang.String getMessage()
-
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
-
withTestId
public TestResult withTestId(java.lang.String testId)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withOutcome
public TestResult withOutcome(TestOutcome outcome)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPriority
public TestResult withPriority(Priority priority)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withMessage
public TestResult withMessage(java.lang.String message)
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
-