Class FailureMirror
- java.lang.Object
-
- com.carrotsearch.ant.tasks.junit4.events.mirrors.FailureMirror
-
public class FailureMirror extends java.lang.Object
A type-safe mirror ofFailure
.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
assertionViolation
Was [@link Failure} an instance of anAssertionError
?private boolean
assumptionViolation
private org.junit.runner.Description
description
The testDescription
that caused this failure.private java.lang.String
message
private java.lang.String
throwableClass
private java.lang.String
throwableString
private java.lang.String
trace
-
Constructor Summary
Constructors Constructor Description FailureMirror(org.junit.runner.Description description, java.lang.String message, java.lang.String trace, java.lang.String throwableString, java.lang.String throwableClass, boolean assertionViolation, boolean assumptionViolation)
FailureMirror(org.junit.runner.notification.Failure failure)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.junit.runner.Description
getDescription()
java.lang.String
getMessage()
java.lang.String
getThrowableClass()
java.lang.String
getThrowableString()
java.lang.String
getTrace()
boolean
isAssertionViolation()
boolean
isAssumptionViolation()
boolean
isErrorViolation()
-
-
-
Field Detail
-
message
private java.lang.String message
-
trace
private java.lang.String trace
-
throwableString
private java.lang.String throwableString
-
throwableClass
private java.lang.String throwableClass
-
assertionViolation
private boolean assertionViolation
Was [@link Failure} an instance of anAssertionError
?
-
assumptionViolation
private boolean assumptionViolation
-
description
private org.junit.runner.Description description
The testDescription
that caused this failure.
-
-
Constructor Detail
-
FailureMirror
public FailureMirror(org.junit.runner.Description description, java.lang.String message, java.lang.String trace, java.lang.String throwableString, java.lang.String throwableClass, boolean assertionViolation, boolean assumptionViolation)
-
FailureMirror
public FailureMirror(org.junit.runner.notification.Failure failure)
-
-
Method Detail
-
getMessage
public java.lang.String getMessage()
-
getThrowableString
public java.lang.String getThrowableString()
-
getDescription
public org.junit.runner.Description getDescription()
-
getTrace
public java.lang.String getTrace()
-
isAssumptionViolation
public boolean isAssumptionViolation()
-
isAssertionViolation
public boolean isAssertionViolation()
-
isErrorViolation
public boolean isErrorViolation()
-
getThrowableClass
public java.lang.String getThrowableClass()
-
-