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