Package 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 aThrowable
have certain message failed.- Author:
- Joel Costigliola
-
-
Field Summary
-
Fields inherited from class org.fest.assertions.error.BasicErrorMessageFactory
arguments, format
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorMessageFactory
shouldHaveMessage(java.lang.Throwable actual, java.lang.String expectedMessage)
Creates a newShouldHaveMessage
.-
Methods inherited from class org.fest.assertions.error.BasicErrorMessageFactory
create, equals, hashCode, toString
-
-
-
-
Method Detail
-
shouldHaveMessage
public static ErrorMessageFactory shouldHaveMessage(java.lang.Throwable actual, java.lang.String expectedMessage)
Creates a newShouldHaveMessage
.- Parameters:
actual
- the actualThrowable
in the failed assertion.expectedMessage
- the expected message of actualThrowable
.- Returns:
- the created
ErrorMessageFactory
.
-
-