org.assertj.core.error
Class ShouldContainCharSequenceSequence

java.lang.Object
  extended by org.assertj.core.error.BasicErrorMessageFactory
      extended by 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

Field Summary
 
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format
 
Method Summary
static ErrorMessageFactory shouldContainSequence(CharSequence actual, CharSequence[] strings, int firstBadOrderIndex)
          Creates a new ShouldContainCharSequenceSequence.
static ErrorMessageFactory shouldContainSequence(CharSequence actual, CharSequence[] strings, int badOrderIndex, ComparisonStrategy comparisonStrategy)
          Creates a new ShouldContainCharSequenceSequence.
 
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, equals, hashCode, toString, unquotedString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

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.