Package org.assertj.core.error
Class ShouldStartWith
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldStartWith
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a group of elements starts with a given value or
sequence of values failed. A group of elements can be a collection, an array or a
String
.-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ShouldStartWith
(Object actual, Object expected, ComparisonStrategy comparisonStrategy) -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessageFactory
shouldStartWith
(Object actual, Object expected) Creates a new
.ShouldStartWith
static ErrorMessageFactory
shouldStartWith
(Object actual, Object expected, ComparisonStrategy comparisonStrategy) Creates a new
.ShouldStartWith
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Constructor Details
-
ShouldStartWith
-
-
Method Details
-
shouldStartWith
public static ErrorMessageFactory shouldStartWith(Object actual, Object expected, ComparisonStrategy comparisonStrategy) Creates a new
.ShouldStartWith
- 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
.
-
shouldStartWith
Creates a new
.ShouldStartWith
- 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
.
-