public class ShouldNotContainString extends BasicErrorMessageFactory
String
does not contain another
String
failed.arguments, format
Modifier and Type | Method and Description |
---|---|
static ErrorMessageFactory |
shouldNotContain(String actual,
String sequence)
Creates a new
. |
static ErrorMessageFactory |
shouldNotContain(String actual,
String sequence,
ComparisonStrategy comparisonStrategy)
Creates a new
. |
create, equals, hashCode, toString
public static ErrorMessageFactory shouldNotContain(String actual, String sequence)
ShouldNotContainString
.actual
- the actual value in the failed assertion.sequence
- the sequence of values expected not to be in actual
.ErrorMessageFactory
.public static ErrorMessageFactory shouldNotContain(String actual, String sequence, ComparisonStrategy comparisonStrategy)
ShouldNotContainString
.actual
- the actual value in the failed assertion.sequence
- the sequence of values expected not to be in actual
.comparisonStrategy
- the ComparisonStrategy
used to evaluate assertion.ErrorMessageFactory
.Copyright © 2013 AssertJ. All Rights Reserved.