Package org.assertj.core.error
Class ShouldNotStartWith
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldNotStartWith
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a group of elements does not start with a
given value or sequence of values failed. A group of elements can be a collection, an array or a
String.- Author:
- Michal Kordas
-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessageFactoryshouldNotStartWith(Object actual, Object expected) Creates a new.ShouldNotStartWithstatic ErrorMessageFactoryshouldNotStartWith(Object actual, Object expected, ComparisonStrategy comparisonStrategy) Creates a new.ShouldNotStartWithMethods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Method Details
-
shouldNotStartWith
public static ErrorMessageFactory shouldNotStartWith(Object actual, Object expected, ComparisonStrategy comparisonStrategy) Creates a new.ShouldNotStartWith- Parameters:
actual- the actual value in the failed assertion.expected- the value or sequence of values thatactualis expected not to start with.comparisonStrategy- theComparisonStrategyused to evaluate assertion.- Returns:
- the created
ErrorMessageFactory.
-
shouldNotStartWith
Creates a new.ShouldNotStartWith- Parameters:
actual- the actual value in the failed assertion.expected- the value or sequence of values thatactualis expected not to start with.- Returns:
- the created
ErrorMessageFactory.
-