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