org.spockframework.runtime
Class SpockComparisonFailure

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Error
          extended by java.lang.AssertionError
              extended by org.junit.ComparisonFailure
                  extended by 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

Constructor Summary
SpockComparisonFailure(Condition condition, java.lang.String expected, java.lang.String actual)
           
 
Method Summary
 Condition getCondition()
           
 java.lang.String getMessage()
           
 java.lang.String toString()
           
 
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
 

Constructor Detail

SpockComparisonFailure

public SpockComparisonFailure(Condition condition,
                              java.lang.String expected,
                              java.lang.String actual)
Method Detail

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