Package org.fest.assertions.error
Class ShouldContainString
java.lang.Object
org.fest.assertions.error.BasicErrorMessageFactory
org.fest.assertions.error.ShouldContainString
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a
String contains another String
failed.- Author:
- Alex Ruiz, Joel Costigliola
-
Field Summary
Fields inherited from class org.fest.assertions.error.BasicErrorMessageFactory
arguments, format -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessageFactoryshouldContain(String actual, String sequence) Creates a new.ShouldContainStringstatic ErrorMessageFactoryshouldContain(String actual, String sequence, ComparisonStrategy comparisonStrategy) Creates a new.ShouldContainStringstatic ErrorMessageFactoryshouldContainIgnoringCase(String actual, String sequence) Creates a new.ShouldContainStringMethods inherited from class org.fest.assertions.error.BasicErrorMessageFactory
create, equals, hashCode, toString
-
Method Details
-
shouldContain
Creates a new.ShouldContainString- Parameters:
actual- the actual value in the failed assertion.sequence- the sequence of values expected to be inactual.- Returns:
- the created
ErrorMessageFactory.
-
shouldContain
public static ErrorMessageFactory shouldContain(String actual, String sequence, ComparisonStrategy comparisonStrategy) Creates a new.ShouldContainString- Parameters:
actual- the actual value in the failed assertion.sequence- the sequence of values expected to be inactual.comparisonStrategy- theComparisonStrategyused to evaluate assertion.- Returns:
- the created
ErrorMessageFactory.
-
shouldContainIgnoringCase
Creates a new.ShouldContainString- Parameters:
actual- the actual value in the failed assertion.sequence- the sequence of values expected to be inactual.- Returns:
- the created
ErrorMessageFactory.
-