Package org.assertj.core.error
Class ShouldNotEndWith
- java.lang.Object
-
- org.assertj.core.error.BasicErrorMessageFactory
-
- org.assertj.core.error.ShouldNotEndWith
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldNotEndWith extends BasicErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a group of elements does not end with a given value or sequence of values failed. A group of elements can be a collection, an array or aString.- Author:
- Michal Kordas
-
-
Field Summary
-
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
-
Constructor Summary
Constructors Modifier Constructor Description privateShouldNotEndWith(Object actual, Object expected, ComparisonStrategy comparisonStrategy)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorMessageFactoryshouldNotEndWith(Object actual, Object expected)Creates a new.ShouldNotEndWithstatic ErrorMessageFactoryshouldNotEndWith(Object actual, Object expected, ComparisonStrategy comparisonStrategy)Creates a new.ShouldNotEndWith-
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
-
-
-
Constructor Detail
-
ShouldNotEndWith
private ShouldNotEndWith(Object actual, Object expected, ComparisonStrategy comparisonStrategy)
-
-
Method Detail
-
shouldNotEndWith
public static ErrorMessageFactory shouldNotEndWith(Object actual, Object expected, ComparisonStrategy comparisonStrategy)
Creates a new.ShouldNotEndWith- Parameters:
actual- the actual value in the failed assertion.expected- the value or sequence of values thatactualis expected to not end with.comparisonStrategy- theComparisonStrategyused to evaluate assertion.- Returns:
- the created
ErrorMessageFactory.
-
shouldNotEndWith
public static ErrorMessageFactory shouldNotEndWith(Object actual, Object expected)
Creates a new.ShouldNotEndWith- Parameters:
actual- the actual value in the failed assertion.expected- the value or sequence of values thatactualis expected to not end with.- Returns:
- the created
ErrorMessageFactory.
-
-