Top Description Fields Constructors Methods
org.assertj.core.error

public Class ShouldNotStartWith

extends BasicErrorMessageFactory
Class Inheritance
Imports
org.assertj.core.internal.ComparisonStrategy, .StandardComparisonStrategy

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

Inherited from org.assertj.core.error.BasicErrorMessageFactory:
argumentsformatformatter

Constructor Summary

AccessConstructor and Description
private
ShouldNotStartWith(Object actual, Object expected, ComparisonStrategy comparisonStrategy)

Method Summary

Modifier and TypeMethod and Description
public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldNotStartWith
(Object
the actual value in the failed assertion.
actual
,
Object
the value or sequence of values that actual is expected not to start with.
expected
,
ComparisonStrategy
the ComparisonStrategy used to evaluate assertion.
comparisonStrategy
)

Creates a new ShouldNotStartWith.

public static ErrorMessageFactory

Returns:

the created ErrorMessageFactory.
shouldNotStartWith
(Object
the actual value in the failed assertion.
actual
,
Object
the value or sequence of values that actual is expected not to start with.
expected
)

Creates a new ShouldNotStartWith.

Inherited from org.assertj.core.error.BasicErrorMessageFactory:
createcreatecreateequalshashCodetoStringunquotedString

Constructor Detail

ShouldNotStartWithback to summary
private ShouldNotStartWith(Object actual, Object expected, ComparisonStrategy comparisonStrategy)

Method Detail

shouldNotStartWithback to summary
public static ErrorMessageFactory shouldNotStartWith(Object actual, Object expected, ComparisonStrategy comparisonStrategy)

Creates a new ShouldNotStartWith.

Parameters
actual:Object

the actual value in the failed assertion.

expected:Object

the value or sequence of values that actual is expected not to start with.

comparisonStrategy:ComparisonStrategy

the ComparisonStrategy used to evaluate assertion.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.

shouldNotStartWithback to summary
public static ErrorMessageFactory shouldNotStartWith(Object actual, Object expected)

Creates a new ShouldNotStartWith.

Parameters
actual:Object

the actual value in the failed assertion.

expected:Object

the value or sequence of values that actual is expected not to start with.

Returns:ErrorMessageFactory

the created ErrorMessageFactory.