ErrorMessageFactorypublic class ShouldContain extends BasicErrorMessageFactory
String.ComparisonStrategy used.arguments, format| Modifier and Type | Method | 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 © 2014–2019. All rights reserved.