org.fest.assertions.error
Class ShouldHaveMessage
java.lang.Object
org.fest.assertions.error.BasicErrorMessageFactory
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
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.