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
. |
static ErrorMessageFactory |
shouldContain(Object actual,
Object expected,
Object notFound,
ComparisonStrategy comparisonStrategy)
Creates a new
. |
create, create, create, equals, hashCode, toString, unquotedString
public 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–2018 AssertJ. All rights reserved.