org.spockframework.runtime
Class SpockComparisonFailure
java.lang.Object
java.lang.Throwable
java.lang.Error
java.lang.AssertionError
org.junit.ComparisonFailure
org.spockframework.runtime.SpockComparisonFailure
- All Implemented Interfaces:
- java.io.Serializable
public class SpockComparisonFailure
- extends org.junit.ComparisonFailure
Thrown when a condition of the form 'expr1 == expr2' fails.
Inherits from JUnit's ComparisonFailure (rather than
ConditionNotSatisfiedError) to enable IDE support for
diff'ing actual and expected values.
- Author:
- Peter Niederwieser
- See Also:
- Serialized Form
Methods inherited from class org.junit.ComparisonFailure |
getActual, getExpected |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SpockComparisonFailure
public SpockComparisonFailure(Condition condition,
java.lang.String expected,
java.lang.String actual)
getCondition
public Condition getCondition()
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in class org.junit.ComparisonFailure
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Throwable
Copyright © 2013. All rights reserved