org.fest.assertions.error
Class ShouldHaveMessage

java.lang.Object
  extended by org.fest.assertions.error.BasicErrorMessageFactory
      extended by org.fest.assertions.error.ShouldHaveMessage
All Implemented Interfaces:
ErrorMessageFactory

public class ShouldHaveMessage
extends BasicErrorMessageFactory

Creates an error message indicating that an assertion that verifies that a Throwable have certain message failed.

Author:
Joel Costigliola

Method Summary
static ErrorMessageFactory shouldHaveMessage(Throwable actual, String expectedMessage)
          Creates a new ShouldHaveMessage.
 
Methods inherited from class org.fest.assertions.error.BasicErrorMessageFactory
create, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

shouldHaveMessage

public static ErrorMessageFactory shouldHaveMessage(Throwable actual,
                                                    String expectedMessage)
Creates a new ShouldHaveMessage.

Parameters:
actual - the actual Throwable in the failed assertion.
expectedMessage - the expected message of actual Throwable.
Returns:
the created ErrorMessageFactory.


Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.