com.carrotsearch.ant.tasks.junit4.events.mirrors
Class FailureMirror

java.lang.Object
  extended by com.carrotsearch.ant.tasks.junit4.events.mirrors.FailureMirror

public class FailureMirror
extends Object

A type-safe mirror of Failure.


Constructor Summary
FailureMirror(Failure failure)
           
 
Method Summary
 Description getDescription()
           
 String getMessage()
           
 Throwable getThrowable()
          Try to deserialize the failure's cause.
 String getThrowableClass()
           
 String getThrowableString()
           
 String getTrace()
           
 boolean isAssertionViolation()
           
 boolean isAssumptionViolation()
           
 boolean isErrorViolation()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FailureMirror

public FailureMirror(Failure failure)
Method Detail

getMessage

public String getMessage()

getThrowableString

public String getThrowableString()

getDescription

public Description getDescription()

getTrace

public String getTrace()

getThrowable

public Throwable getThrowable()
                       throws ClassNotFoundException,
                              IOException
Try to deserialize the failure's cause. Context class loader is used for class lookup. May cause side effects (class loading, static blocks, etc.)

Throws:
ClassNotFoundException
IOException

isAssumptionViolation

public boolean isAssumptionViolation()

isAssertionViolation

public boolean isAssertionViolation()

isErrorViolation

public boolean isErrorViolation()

getThrowableClass

public String getThrowableClass()


Copyright © 2011-2012 Carrot Search s.c.. All Rights Reserved.