Package org.fest.assertions.error
Class ShouldContainAtIndex
- java.lang.Object
-
- org.fest.assertions.error.BasicErrorMessageFactory
-
- org.fest.assertions.error.ShouldContainAtIndex
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldContainAtIndex extends BasicErrorMessageFactory
Creates an error message indicating that an assertion that verifies a group of elements contains a value at a given index failed. A group of elements can be a collection, an array or aString.
It also mention theComparisonStrategyif the default one is not used.- Author:
- Alex Ruiz, Joel Costigliola
-
-
Field Summary
-
Fields inherited from class org.fest.assertions.error.BasicErrorMessageFactory
arguments, format
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorMessageFactoryshouldContainAtIndex(java.lang.Object actual, java.lang.Object expected, Index index, java.lang.Object found)Creates a newShouldContainAtIndex.static ErrorMessageFactoryshouldContainAtIndex(java.lang.Object actual, java.lang.Object expected, Index index, java.lang.Object found, ComparisonStrategy comparisonStrategy)Creates a newShouldContainAtIndex.-
Methods inherited from class org.fest.assertions.error.BasicErrorMessageFactory
create, equals, hashCode, toString
-
-
-
-
Method Detail
-
shouldContainAtIndex
public static ErrorMessageFactory shouldContainAtIndex(java.lang.Object actual, java.lang.Object expected, Index index, java.lang.Object found, ComparisonStrategy comparisonStrategy)
Creates a newShouldContainAtIndex.- Parameters:
actual- the actual value in the failed assertion.expected- value expected to be inactual.index- the index of the expected value.found- the value inactualstored underindex.comparisonStrategy- theComparisonStrategyused to evaluate assertion.- Returns:
- the created
ErrorMessageFactory.
-
shouldContainAtIndex
public static ErrorMessageFactory shouldContainAtIndex(java.lang.Object actual, java.lang.Object expected, Index index, java.lang.Object found)
Creates a newShouldContainAtIndex.- Parameters:
actual- the actual value in the failed assertion.expected- value expected to be inactual.index- the index of the expected value.found- the value inactualstored underindex.- Returns:
- the created
ErrorMessageFactory.
-
-