public class ShouldContainsOnlyOnce extends BasicErrorMessageFactory
String
.arguments, format
Modifier and Type | Method and Description |
---|---|
static ErrorMessageFactory |
shouldContainsOnlyOnce(Object actual,
Object expected,
Set<?> notFound,
Set<?> notOnlyOnce)
Creates a new
. |
static ErrorMessageFactory |
shouldContainsOnlyOnce(Object actual,
Object expected,
Set<?> notFound,
Set<?> notOnlyOnce,
ComparisonStrategy comparisonStrategy)
Creates a new
. |
create, create, create, equals, hashCode, toString, unquotedString
public static ErrorMessageFactory shouldContainsOnlyOnce(Object actual, Object expected, Set<?> notFound, Set<?> notOnlyOnce, ComparisonStrategy comparisonStrategy)
ShouldContainsOnlyOnce
.actual
- the actual value in the failed assertion.expected
- values expected to be contained in actual
.notFound
- values in expected
not found in actual
.notOnlyOnce
- values in actual
that were not only once in expected
.comparisonStrategy
- the ComparisonStrategy
used to evaluate assertion.ErrorMessageFactory
.public static ErrorMessageFactory shouldContainsOnlyOnce(Object actual, Object expected, Set<?> notFound, Set<?> notOnlyOnce)
ShouldContainsOnlyOnce
.actual
- the actual value in the failed assertion.expected
- values expected to be contained in actual
.notFound
- values in expected
not found in actual
.notOnlyOnce
- values in actual
that were found not only once in expected
.ErrorMessageFactory
.Copyright © 2013–2018 AssertJ. All rights reserved.