org.jboss.testharness.impl.runner
Class TestResultImpl

java.lang.Object
  extended by org.jboss.testharness.impl.runner.TestResultImpl
All Implemented Interfaces:
Serializable, TestResult

public class TestResultImpl
extends Object
implements Serializable, TestResult

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.testharness.api.TestResult
TestResult.Status
 
Constructor Summary
TestResultImpl(TestResult.Status status, Throwable throwable)
           
 
Method Summary
 TestResult.Status getStatus()
          Get the status of this test
 Throwable getThrowable()
          If the test failed, the exception that was thrown.
static TestResult of(org.testng.ITestResult testNGResult)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestResultImpl

public TestResultImpl(TestResult.Status status,
                      Throwable throwable)
Method Detail

getStatus

public TestResult.Status getStatus()
Description copied from interface: TestResult
Get the status of this test

Specified by:
getStatus in interface TestResult

getThrowable

public Throwable getThrowable()
Description copied from interface: TestResult
If the test failed, the exception that was thrown. It does not need to be the root cause.

Specified by:
getThrowable in interface TestResult

of

public static TestResult of(org.testng.ITestResult testNGResult)


Copyright © 2009-2011. All Rights Reserved.