public class ShouldContainOnly extends BasicErrorMessageFactory
String.arguments, format| Modifier and Type | Method and Description |
|---|---|
static ErrorMessageFactory |
shouldContainOnly(Object actual,
Object expected,
Object notFound,
Iterable<?> notExpected)
Creates a new
ShouldContainOnly. |
static ErrorMessageFactory |
shouldContainOnly(Object actual,
Object expected,
Object notFound,
Iterable<?> notExpected,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldContainOnly. |
static ErrorMessageFactory |
shouldContainOnly(Object actual,
Object expected,
Object notFound,
Object notExpected)
Creates a new
ShouldContainOnly. |
static ErrorMessageFactory |
shouldContainOnly(Object actual,
Object expected,
Object notFound,
Object notExpected,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldContainOnly. |
create, create, create, equals, hashCode, toString, unquotedStringpublic static ErrorMessageFactory shouldContainOnly(Object actual, Object expected, Object notFound, Object notExpected, ComparisonStrategy comparisonStrategy)
ShouldContainOnly.actual - the actual value in the failed assertion.expected - values expected to be contained in actual.notFound - values in expected not found in actual.notExpected - values in actual that were not in expected.comparisonStrategy - the ComparisonStrategy used to evaluate assertion.ErrorMessageFactory.public static ErrorMessageFactory shouldContainOnly(Object actual, Object expected, Object notFound, Iterable<?> notExpected, ComparisonStrategy comparisonStrategy)
ShouldContainOnly.actual - the actual value in the failed assertion.expected - values expected to be contained in actual.notFound - values in expected not found in actual.notExpected - values in actual that were not in expected.comparisonStrategy - the ComparisonStrategy used to evaluate assertion.ErrorMessageFactory.public static ErrorMessageFactory shouldContainOnly(Object actual, Object expected, Object notFound, Object notExpected)
ShouldContainOnly.actual - the actual value in the failed assertion.expected - values expected to be contained in actual.notFound - values in expected not found in actual.notExpected - values in actual that were not in expected.ErrorMessageFactory.public static ErrorMessageFactory shouldContainOnly(Object actual, Object expected, Object notFound, Iterable<?> notExpected)
ShouldContainOnly.actual - the actual value in the failed assertion.expected - values expected to be contained in actual.notFound - values in expected not found in actual.notExpected - values in actual that were not in expected.ErrorMessageFactory.Copyright © 2013-2015 AssertJ. All Rights Reserved.