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 java.lang.Object

A type-safe mirror of Failure.


Constructor Summary
FailureMirror(Failure failure)
           
 
Method Summary
 Description getDescription()
           
 java.lang.String getMessage()
           
 java.lang.Throwable getThrowable()
          Try to deserialize the failure's cause.
 java.lang.String getThrowableClass()
           
 java.lang.String getThrowableString()
           
 java.lang.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 java.lang.String getMessage()

getThrowableString

public java.lang.String getThrowableString()

getDescription

public Description getDescription()

getTrace

public java.lang.String getTrace()

getThrowable

public java.lang.Throwable getThrowable()
                                 throws java.lang.ClassNotFoundException,
                                        java.io.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:
java.lang.ClassNotFoundException
java.io.IOException

isAssumptionViolation

public boolean isAssumptionViolation()

isAssertionViolation

public boolean isAssertionViolation()

isErrorViolation

public boolean isErrorViolation()

getThrowableClass

public java.lang.String getThrowableClass()


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