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