public class ElementsShouldHaveExactly extends BasicErrorMessageFactory
Condition A group of elements can be a collection, an array.arguments, format| Modifier and Type | Method and Description |
|---|---|
static <E> ErrorMessageFactory |
elementsShouldHaveExactly(Object actual,
int times,
Condition<?> condition)
Creates a new
ElementsShouldHaveExactly. |
create, create, create, equals, hashCode, toString, unquotedStringpublic static <E> ErrorMessageFactory elementsShouldHaveExactly(Object actual, int times, Condition<?> condition)
ElementsShouldHaveExactly.actual - the actual value in the failed assertion.times - exactly times the condition should be verify.condition - the Condition.ErrorMessageFactory.Copyright © 2013–2016 AssertJ. All rights reserved.