public class ShouldHaveSize extends BasicErrorMessageFactory
arguments, format| Modifier and Type | Method and Description |
|---|---|
static ErrorMessageFactory |
shouldHaveSize(File actual,
long expectedSize)
Creates a new
for file size. |
static ErrorMessageFactory |
shouldHaveSize(Object actual,
int actualSize,
int expectedSize)
Creates a new
. |
static ErrorMessageFactory |
shouldHaveSize(Object actual,
int actualSize,
int expectedSize,
int firstDimensionArrayIndex)
Creates a new
. |
static ErrorMessageFactory |
shouldHaveSize(Path actual,
long expectedSize)
Creates a new
for Path file size |
create, create, create, equals, hashCode, toString, unquotedStringpublic static ErrorMessageFactory shouldHaveSize(Object actual, int actualSize, int expectedSize, int firstDimensionArrayIndex)
ShouldHaveSize.actual - the actual value in the failed assertion.actualSize - the size of actual.expectedSize - the expected size.firstDimensionArrayIndex - Index of first dimension of arrayErrorMessageFactory.public static ErrorMessageFactory shouldHaveSize(Object actual, int actualSize, int expectedSize)
ShouldHaveSize.actual - the actual value in the failed assertion.actualSize - the size of actual.expectedSize - the expected size.ErrorMessageFactory.public static ErrorMessageFactory shouldHaveSize(File actual, long expectedSize)
ShouldHaveSize for file size.actual - the actual file in the failed assertion.expectedSize - the expected file size.ErrorMessageFactory.public static ErrorMessageFactory shouldHaveSize(Path actual, long expectedSize) throws IOException
ShouldHaveSize for Path file sizeactual - The actual path file in the failed assertionexpectedSize - The expected size of the path fileErrorMessageFactoryIOException - if an I/O error occursCopyright © 2025. All rights reserved.