public class ShouldNotHaveDuplicates extends BasicErrorMessageFactory
String
.arguments, format
Modifier and Type | Method and Description |
---|---|
static ErrorMessageFactory |
shouldNotHaveDuplicates(Object actual,
Object duplicates)
Creates a new
. |
static ErrorMessageFactory |
shouldNotHaveDuplicates(Object actual,
Object duplicates,
ComparisonStrategy comparisonStrategy)
Creates a new
. |
create, create, create, equals, hashCode, toString, unquotedString
public static ErrorMessageFactory shouldNotHaveDuplicates(Object actual, Object duplicates, ComparisonStrategy comparisonStrategy)
ShouldNotHaveDuplicates
.actual
- the actual value in the failed assertion.duplicates
- the duplicate values found in actual
.comparisonStrategy
- the ComparisonStrategy
used to evaluate assertion.ErrorMessageFactory
.public static ErrorMessageFactory shouldNotHaveDuplicates(Object actual, Object duplicates)
ShouldNotHaveDuplicates
.actual
- the actual value in the failed assertion.duplicates
- the duplicate values found in actual
.ErrorMessageFactory
.Copyright © 2014–2019 AssertJ. All rights reserved.