public class BooleanArrayAssert extends ArrayAssert<BooleanArrayAssert,boolean[]>
boolean arrays.
To create a new instance of this class invoke .
Assertions.assertThat(boolean[])
actual, myself| Modifier | Constructor and Description |
|---|---|
protected |
BooleanArrayAssert(boolean... actual)
Creates a new
BooleanArrayAssert. |
| Modifier and Type | Method and Description |
|---|---|
BooleanArrayAssert |
contains(boolean... values)
Verifies that the actual
boolean array contains the given values. |
BooleanArrayAssert |
containsOnly(boolean... values)
Verifies that the actual
boolean array contains the given values only. |
BooleanArrayAssert |
excludes(boolean... values)
Verifies that the actual
boolean array does not contain the given values. |
BooleanArrayAssert |
isEqualTo(boolean[] expected)
Verifies that the actual
boolean array is equal to the given array. |
BooleanArrayAssert |
isNotEqualTo(boolean[] array)
Verifies that the actual
boolean array is not equal to the given array. |
actualAsList, actualAsSet, actualGroupSizeassertContains, assertContainsOnly, assertDoesNotHaveDuplicates, assertExcludes, validateIsNotNullhasSize, isEmpty, isNotEmpty, isNullOrEmptyas, as, describedAs, describedAs, doesNotSatisfy, is, isIn, isIn, isNot, isNotIn, isNotIn, isNotNull, isNotSameAs, isNull, isSameAs, overridingErrorMessage, satisfiescustomErrorMessage, description, description, description, equals, fail, fail, failIfCustomMessageIsSet, failIfCustomMessageIsSet, failure, formattedErrorMessage, hashCode, rawDescription, replaceDefaultErrorMessagesWithprotected BooleanArrayAssert(boolean... actual)
BooleanArrayAssert.actual - the target to verify.public BooleanArrayAssert contains(boolean... values)
boolean array contains the given values.values - the values to look for.AssertionError - if the actual boolean array is null.NullPointerException - if the given boolean array is null.AssertionError - if the actual boolean array does not contain the given values.public BooleanArrayAssert containsOnly(boolean... values)
boolean array contains the given values only.values - the values to look for.AssertionError - if the actual boolean array is null.NullPointerException - if the given boolean array is null.AssertionError - if the actual boolean array does not contain the given objects, or if the
actual boolean array contains elements other than the ones specified.public BooleanArrayAssert excludes(boolean... values)
boolean array does not contain the given values.values - the values the array should exclude.AssertionError - if the actual boolean array is null.NullPointerException - if the given boolean array is null.AssertionError - if the actual boolean array contains any of the given values.public BooleanArrayAssert isEqualTo(boolean[] expected)
boolean array is equal to the given array. Array equality is checked by
Arrays.equals(boolean[], boolean[]).isEqualTo in class GenericAssert<BooleanArrayAssert,boolean[]>expected - the given array to compare the actual array to.AssertionError - if the actual boolean array is not equal to the given one.public BooleanArrayAssert isNotEqualTo(boolean[] array)
boolean array is not equal to the given array. Array equality is checked by
Arrays.equals(boolean[], boolean[]).isNotEqualTo in class GenericAssert<BooleanArrayAssert,boolean[]>array - the given array to compare the actual array to.AssertionError - if the actual boolean array is equal to the given one.Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.