public class ShouldContain extends BasicErrorMessageFactory
String.ComparisonStrategy used.arguments, format| Modifier and Type | Method and Description |
|---|---|
static ErrorMessageFactory |
shouldContain(Object actual,
Object expected,
Object notFound)
Creates a new
ShouldContain. |
static ErrorMessageFactory |
shouldContain(Object actual,
Object expected,
Object notFound,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldContain. |
create, create, create, equals, hashCode, toString, unquotedStringpublic static ErrorMessageFactory shouldContain(Object actual, Object expected, Object notFound, ComparisonStrategy comparisonStrategy)
ShouldContain.actual - the actual value in the failed assertion.expected - values expected to be in actual.notFound - the values in expected not found in actual.comparisonStrategy - the ComparisonStrategy used to evaluate assertion.ErrorMessageFactory.public static ErrorMessageFactory shouldContain(Object actual, Object expected, Object notFound)
ShouldContain.actual - the actual value in the failed assertion.expected - values expected to be in actual.notFound - the values in expected not found in actual.ErrorMessageFactory.Copyright © 2013–2016 AssertJ. All rights reserved.