Package org.assertj.core.error
Class ShouldEndWith
- java.lang.Object
-
- org.assertj.core.error.BasicErrorMessageFactory
-
- org.assertj.core.error.ShouldEndWith
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldEndWith extends BasicErrorMessageFactory
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 aString.- Author:
- Alex Ruiz, Joel Costigliola
-
-
Field Summary
-
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
-
Constructor Summary
Constructors Modifier Constructor Description privateShouldEndWith(Object actual, Object expected, ComparisonStrategy comparisonStrategy)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorMessageFactoryshouldEndWith(Object actual, Object expected)Creates a new.ShouldEndWithstatic ErrorMessageFactoryshouldEndWith(Object actual, Object expected, ComparisonStrategy comparisonStrategy)Creates a new.ShouldEndWith-
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
-
-
-
Constructor Detail
-
ShouldEndWith
private ShouldEndWith(Object actual, Object expected, ComparisonStrategy comparisonStrategy)
-
-
Method Detail
-
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 thatactualis expected to end with.comparisonStrategy- theComparisonStrategyused to evaluate assertion.- Returns:
- the created
ErrorMessageFactory.
-
shouldEndWith
public static ErrorMessageFactory shouldEndWith(Object actual, Object expected)
Creates a new.ShouldEndWith- Parameters:
actual- the actual value in the failed assertion.expected- the value or sequence of values thatactualis expected to end with.- Returns:
- the created
ErrorMessageFactory.
-
-