org.jboss.osgi.husky
Interface Failure

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
JUnitFailure

public interface Failure
extends java.io.Serializable

An abstraction of a test failure that is associated with a test Response.

Since:
16-May-2009
Author:
Thomas.Diesler@jboss.com

Method Summary
 java.lang.String getClassName()
          Get the name of the test class that failed
 java.lang.Throwable getException()
          Get the exceoption that caused the failure.
 java.lang.String getMessage()
          Get the test failure message
 java.lang.String getMethodName()
          Get the name of the test method that failed
 

Method Detail

getClassName

java.lang.String getClassName()
Get the name of the test class that failed


getMethodName

java.lang.String getMethodName()
Get the name of the test method that failed


getMessage

java.lang.String getMessage()
Get the test failure message


getException

java.lang.Throwable getException()
Get the exceoption that caused the failure. In case of a failure due to an assertion, this will be RuntimeException or Error thrown by the test framework.



Copyright © 2009. All Rights Reserved.