org.thymeleaf.testing.templateengine.testable
Class TestResult

Object
  extended by org.thymeleaf.testing.templateengine.testable.TestResult
All Implemented Interfaces:
ITestResult

public class TestResult
extends Object
implements ITestResult


Constructor Summary
protected TestResult(String testName, boolean ok, String message, Throwable throwable)
           
 
Method Summary
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)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestResult

protected TestResult(String testName,
                     boolean ok,
                     String message,
                     Throwable throwable)
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 interface ITestResult

hasMessage

public boolean hasMessage()
Specified by:
hasMessage in interface ITestResult

getMessage

public String getMessage()
Specified by:
getMessage in interface ITestResult

hasThrowable

public boolean hasThrowable()
Specified by:
hasThrowable in interface ITestResult

getThrowable

public Throwable getThrowable()
Specified by:
getThrowable in interface ITestResult


Copyright © 2013 The THYMELEAF team. All Rights Reserved.