org.jboss.osgi.husky
Interface Failure

All Superinterfaces:
Serializable
All Known Implementing Classes:
JUnitFailure

public interface Failure
extends 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
 String getClassName()
          Get the name of the test class that failed
 Throwable getException()
          Get the exceoption that caused the failure.
 String getMessage()
          Get the test failure message
 String getMethodName()
          Get the name of the test method that failed
 

Method Detail

getClassName

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


getMethodName

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


getMessage

String getMessage()
Get the test failure message


getException

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 © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.