T
- The "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation"
for more details.public interface AssertOnNumberOfChanges<T extends AssertOnNumberOfChanges<T>>
Modifier and Type | Method and Description |
---|---|
T |
hasNumberOfChanges(int expected)
Verifies that the number of changes is equal to the number in parameter.
|
T hasNumberOfChanges(int expected)
Example where the assertion verifies that there are 8 changes :
assertThat(changes).hasNumberOfChanges(8);
expected
- The number to compare to.this
assertion object.AssertionError
- If the number of changes is different to the number in parameter.ChangesAssert.hasNumberOfChanges(int)
Copyright © 2015 AssertJ. All Rights Reserved.