org.apache.maven.surefire.assertion
Class SurefireComparisonFailureException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.maven.surefire.util.NestedRuntimeException
                  extended by org.apache.maven.surefire.assertion.SurefireAssertionFailedException
                      extended by org.apache.maven.surefire.assertion.SurefireComparisonFailureException
All Implemented Interfaces:
Serializable

public class SurefireComparisonFailureException
extends SurefireAssertionFailedException

Thrown when an assertion equals for Strings failed.

See Also:
Serialized Form

Constructor Summary
SurefireComparisonFailureException(String message, String expected, String actual)
          Constructs a comparison failure.
 
Method Summary
 
Methods inherited from class org.apache.maven.surefire.util.NestedRuntimeException
contains, getCause, getMessage, getRootCause, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SurefireComparisonFailureException

public SurefireComparisonFailureException(String message,
                                          String expected,
                                          String actual)
Constructs a comparison failure.

Parameters:
message - the identifying message or null
expected - the expected string value
actual - the actual string value


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.