public class Char2DArrays extends Object
chars.| Constructor and Description |
|---|
Char2DArrays() |
| Modifier and Type | Method and Description |
|---|---|
void |
assertContains(AssertionInfo info,
char[][] actual,
char[] value,
Index index)
Verifies that the given array contains the given value at the given index.
|
void |
assertDoesNotContain(AssertionInfo info,
char[][] actual,
char[] value,
Index index)
Verifies that the given array does not contain the given value at the given index.
|
void |
assertEmpty(AssertionInfo info,
char[][] actual)
Asserts that the given array is empty.
|
void |
assertHasDimensions(AssertionInfo info,
char[][] actual,
int expectedFirstDimension,
int expectedSecondDimension)
Asserts that the number of elements in the given array is equal to the expected one.
|
void |
assertHasSameDimensionsAs(AssertionInfo info,
char[][] actual,
Object other)
Assert that the actual array has the same dimensions as the other array.
|
void |
assertNotEmpty(AssertionInfo info,
char[][] actual)
Asserts that the given array is not empty.
|
void |
assertNullOrEmpty(AssertionInfo info,
char[][] actual)
Asserts that the given array is
null or empty. |
void |
assertNumberOfRows(AssertionInfo info,
char[][] actual,
int expectedNumberOfRows)
Asserts that the number of rows in the given array is equal to the expected one.
|
static Char2DArrays |
instance()
Returns the singleton instance of this class.
|
void |
setArrays(Arrays2D arrays) |
public static Char2DArrays instance()
public void setArrays(Arrays2D arrays)
public void assertNullOrEmpty(AssertionInfo info, char[][] actual)
null or empty.info - contains information about the assertion.actual - the given array.AssertionError - if the given array is not null *and* contains one or more elements.public void assertEmpty(AssertionInfo info, char[][] actual)
info - contains information about the assertion.actual - the given array.AssertionError - if the given array is null.AssertionError - if the given array is not empty.public void assertNotEmpty(AssertionInfo info, char[][] actual)
info - contains information about the assertion.actual - the given array.AssertionError - if the given array is null.AssertionError - if the given array is empty.public void assertHasDimensions(AssertionInfo info, char[][] actual, int expectedFirstDimension, int expectedSecondDimension)
info - contains information about the assertion.actual - the given array.expectedFirstDimension - the expected first dimension size of actual.expectedSecondDimension - the expected second dimension size of actual.AssertionError - if the given array is null.AssertionError - if the actual array's dimensions are not equal to the given ones.public void assertHasSameDimensionsAs(AssertionInfo info, char[][] actual, Object other)
info - contains information about the assertion.actual - the given array.other - the group to compareAssertionError - if the actual group is null.AssertionError - if the other group is null.AssertionError - if the actual group does not have the same dimensions.public void assertNumberOfRows(AssertionInfo info, char[][] actual, int expectedNumberOfRows)
info - contains information about the assertion.actual - the given array.expectedNumberOfRows - the expected first dimension size of actual.public void assertContains(AssertionInfo info, char[][] actual, char[] value, Index index)
info - contains information about the assertion.actual - the given array.value - the value to look for.index - the index where the value should be stored in the given array.AssertionError - if the given array is null or empty.NullPointerException - if the given Index is null.IndexOutOfBoundsException - if the value of the given Index is equal to or greater than the size of
the given array.AssertionError - if the given array does not contain the given value at the given index.public void assertDoesNotContain(AssertionInfo info, char[][] actual, char[] value, Index index)
info - contains information about the assertion.actual - the given array.value - the value to look for.index - the index where the value should be stored in the given array.AssertionError - if the given array is null.NullPointerException - if the given Index is null.AssertionError - if the given array contains the given value at the given index.Copyright © 2025. All rights reserved.