Class TestResult
- Object
-
- org.thymeleaf.testing.templateengine.testable.TestResult
-
- All Implemented Interfaces:
ITestResult
public class TestResult extends Object implements ITestResult
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TestResult(String testName, boolean ok, String message, Throwable throwable)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TestResult
error(String testName, String message)
static TestResult
error(String testName, String message, Throwable t)
static TestResult
error(String testName, Throwable t)
String
getMessage()
String
getTestName()
Throwable
getThrowable()
boolean
hasMessage()
boolean
hasThrowable()
boolean
isOK()
static TestResult
ok(String testName)
static TestResult
ok(String testName, String message)
static TestResult
ok(String testName, String message, Throwable t)
static TestResult
ok(String testName, Throwable t)
-
-
-
Method Detail
-
ok
public static TestResult ok(String testName)
-
ok
public static TestResult ok(String testName, String message)
-
ok
public static TestResult ok(String testName, Throwable t)
-
ok
public static TestResult ok(String testName, String message, Throwable t)
-
error
public static TestResult error(String testName, String message)
-
error
public static TestResult error(String testName, String message, Throwable t)
-
error
public static TestResult error(String testName, Throwable t)
-
getTestName
public String getTestName()
-
isOK
public boolean isOK()
- Specified by:
isOK
in interfaceITestResult
-
hasMessage
public boolean hasMessage()
- Specified by:
hasMessage
in interfaceITestResult
-
getMessage
public String getMessage()
- Specified by:
getMessage
in interfaceITestResult
-
hasThrowable
public boolean hasThrowable()
- Specified by:
hasThrowable
in interfaceITestResult
-
getThrowable
public Throwable getThrowable()
- Specified by:
getThrowable
in interfaceITestResult
-
-