public class SimpleTestResult extends java.lang.Object implements TestResult
Constructor and Description |
---|
SimpleTestResult(boolean success,
java.lang.String message) |
SimpleTestResult(boolean success,
java.lang.String message,
java.lang.Throwable exception) |
Modifier and Type | Method and Description |
---|---|
static TestResult |
failed(Test test,
java.lang.String message) |
static TestResult |
failed(Test test,
java.lang.String message,
java.lang.Object expected,
java.lang.Object found) |
static TestResult |
failed(Test test,
java.lang.String message,
java.lang.Throwable t) |
static java.lang.String |
failedMessage(java.lang.String algorithm,
java.lang.String testName,
java.lang.String expected,
java.lang.String actual) |
java.lang.Throwable |
getException() |
boolean |
isSuccessful() |
static TestResult |
successful(Test test,
java.lang.String message) |
java.lang.String |
toString() |
public SimpleTestResult(boolean success, java.lang.String message)
public SimpleTestResult(boolean success, java.lang.String message, java.lang.Throwable exception)
public static TestResult successful(Test test, java.lang.String message)
public static TestResult failed(Test test, java.lang.String message)
public static TestResult failed(Test test, java.lang.String message, java.lang.Throwable t)
public static TestResult failed(Test test, java.lang.String message, java.lang.Object expected, java.lang.Object found)
public static java.lang.String failedMessage(java.lang.String algorithm, java.lang.String testName, java.lang.String expected, java.lang.String actual)
public boolean isSuccessful()
isSuccessful
in interface TestResult
public java.lang.String toString()
toString
in interface TestResult
toString
in class java.lang.Object
public java.lang.Throwable getException()
getException
in interface TestResult