org.assertj.core.error
Class ShouldContainCharSequenceSequence
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldContainCharSequenceSequence
- All Implemented Interfaces:
- ErrorMessageFactory
public class ShouldContainCharSequenceSequence
- extends BasicErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a CharSequence contains a sequence of
several CharSequences in order failed.
- Author:
- Joel Costigliola, Mikhail Mazursky
shouldContainSequence
public static ErrorMessageFactory shouldContainSequence(CharSequence actual,
CharSequence[] strings,
int firstBadOrderIndex)
- Creates a new
ShouldContainCharSequenceSequence.
- Parameters:
actual - the actual value in the failed assertion.strings - the sequence of values expected to be in actual.
- Returns:
- the created
ErrorMessageFactory.
shouldContainSequence
public static ErrorMessageFactory shouldContainSequence(CharSequence actual,
CharSequence[] strings,
int badOrderIndex,
ComparisonStrategy comparisonStrategy)
- Creates a new
ShouldContainCharSequenceSequence.
- Parameters:
actual - the actual value in the failed assertion.strings - the sequence of values expected to be in actual.comparisonStrategy - the ComparisonStrategy used to evaluate assertion.
- Returns:
- the created
ErrorMessageFactory.
Copyright © 2013–2015 AssertJ. All rights reserved.