org.assertj.core.error
Class ShouldNotContainAtIndex

java.lang.Object
  extended by org.assertj.core.error.BasicErrorMessageFactory
      extended by org.assertj.core.error.ShouldNotContainAtIndex
All Implemented Interfaces:
ErrorMessageFactory

public class ShouldNotContainAtIndex
extends BasicErrorMessageFactory

Creates an error message indicating that an assertion that verifies a group of elements does not contain a value at a given index failed. A group of elements can be a collection, an array or a String.
It also mention the ComparisonStrategy if the default one is not used.

Author:
Alex Ruiz, Joel Costigliola

Field Summary
 
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format
 
Method Summary
static ErrorMessageFactory shouldNotContainAtIndex(Object actual, Object expected, Index index)
          Creates a new ShouldNotContainAtIndex.
static ErrorMessageFactory shouldNotContainAtIndex(Object actual, Object expected, Index index, ComparisonStrategy comparisonStrategy)
          Creates a new ShouldNotContainAtIndex.
 
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

shouldNotContainAtIndex

public static ErrorMessageFactory shouldNotContainAtIndex(Object actual,
                                                          Object expected,
                                                          Index index,
                                                          ComparisonStrategy comparisonStrategy)
Creates a new ShouldNotContainAtIndex.

Parameters:
actual - the actual value in the failed assertion.
expected - value expected to be in actual.
index - the index of the expected value.
comparisonStrategy - the ComparisonStrategy used to evaluate assertion.
Returns:
the created ErrorMessageFactory.

shouldNotContainAtIndex

public static ErrorMessageFactory shouldNotContainAtIndex(Object actual,
                                                          Object expected,
                                                          Index index)
Creates a new ShouldNotContainAtIndex.

Parameters:
actual - the actual value in the failed assertion.
expected - value expected to be in actual.
index - the index of the expected value.
Returns:
the created ErrorMessageFactory.


Copyright © 2013–2015 AssertJ. All rights reserved.