Package org.fest.assertions.error
Class ShouldEndWith
java.lang.Object
org.fest.assertions.error.BasicErrorMessageFactory
org.fest.assertions.error.ShouldEndWith
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a group of elements ends with a given value or
sequence of values failed. A group of elements can be a collection, an array or a
String
.- Author:
- Alex Ruiz, Joel Costigliola
-
Field Summary
Fields inherited from class org.fest.assertions.error.BasicErrorMessageFactory
arguments, format
-
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessageFactory
shouldEndWith
(Object actual, Object expected) Creates a new
.ShouldEndWith
static ErrorMessageFactory
shouldEndWith
(Object actual, Object expected, ComparisonStrategy comparisonStrategy) Creates a new
.ShouldEndWith
Methods inherited from class org.fest.assertions.error.BasicErrorMessageFactory
create, equals, hashCode, toString
-
Method Details
-
shouldEndWith
public static ErrorMessageFactory shouldEndWith(Object actual, Object expected, ComparisonStrategy comparisonStrategy) Creates a new
.ShouldEndWith
- Parameters:
actual
- the actual value in the failed assertion.expected
- the value or sequence of values thatactual
is expected to start with.comparisonStrategy
- theComparisonStrategy
used to evaluate assertion.- Returns:
- the created
ErrorMessageFactory
.
-
shouldEndWith
Creates a new
.ShouldEndWith
- Parameters:
actual
- the actual value in the failed assertion.expected
- the value or sequence of values thatactual
is expected to start with.- Returns:
- the created
ErrorMessageFactory
.
-