Package org.assertj.core.api
Class FileSizeAssert<T>
- java.lang.Object
-
- org.assertj.core.api.AbstractAssert<SELF,ACTUAL>
-
- org.assertj.core.api.AbstractObjectAssert<SELF,ACTUAL>
-
- org.assertj.core.api.AbstractComparableAssert<SELF,Long>
-
- org.assertj.core.api.AbstractLongAssert<AbstractFileSizeAssert<SELF>>
-
- org.assertj.core.api.AbstractFileSizeAssert<FileAssert>
-
- org.assertj.core.api.FileSizeAssert<T>
-
- All Implemented Interfaces:
Assert<AbstractFileSizeAssert<FileAssert>,Long>
,ComparableAssert<AbstractFileSizeAssert<FileAssert>,Long>
,Descriptable<AbstractFileSizeAssert<FileAssert>>
,ExtensionPoints<AbstractFileSizeAssert<FileAssert>,Long>
,NumberAssert<AbstractFileSizeAssert<FileAssert>,Long>
public class FileSizeAssert<T> extends AbstractFileSizeAssert<FileAssert>
-
-
Field Summary
Fields Modifier and Type Field Description private AbstractFileAssert<FileAssert>
fileAssert
-
Fields inherited from class org.assertj.core.api.AbstractLongAssert
longs
-
Fields inherited from class org.assertj.core.api.AbstractComparableAssert
comparables
-
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, assertionErrorCreator, conditions, customRepresentation, info, myself, objects, printAssertionsDescription, throwUnsupportedExceptionOnEquals
-
-
Constructor Summary
Constructors Constructor Description FileSizeAssert(AbstractFileAssert<FileAssert> fileAssert)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractFileAssert<FileAssert>
returnToFile()
Returns to the file on which we ran size assertions on.-
Methods inherited from class org.assertj.core.api.AbstractLongAssert
isBetween, isCloseTo, isCloseTo, isCloseTo, isCloseTo, isEqualTo, isEven, isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualTo, isNegative, isNotCloseTo, isNotCloseTo, isNotCloseTo, isNotCloseTo, isNotEqualTo, isNotNegative, isNotPositive, isNotZero, isOdd, isOne, isPositive, isStrictlyBetween, isZero, usingComparator, usingComparator, usingDefaultComparator
-
Methods inherited from class org.assertj.core.api.AbstractComparableAssert
inBinary, inHexadecimal, isEqualByComparingTo, isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualTo, isNotEqualByComparingTo
-
Methods inherited from class org.assertj.core.api.AbstractObjectAssert
as, as, doesNotReturn, extracting, extracting, extracting, extracting, extracting, extracting, extractingForProxy, getComparatorsByType, hasAllNullFieldsOrProperties, hasAllNullFieldsOrPropertiesExcept, hasFieldOrProperty, hasFieldOrPropertyWithValue, hasNoNullFieldsOrProperties, hasNoNullFieldsOrPropertiesExcept, hasOnlyFields, isEqualToComparingFieldByField, isEqualToComparingFieldByFieldRecursively, isEqualToComparingOnlyGivenFields, isEqualToIgnoringGivenFields, isEqualToIgnoringNullFields, newObjectAssert, returns, usingComparatorForFields, usingComparatorForType, usingRecursiveComparison, usingRecursiveComparison, withAssertionState, withComparatorByPropertyOrField, withTypeComparator
-
Methods inherited from class org.assertj.core.api.AbstractAssert
asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, is, isElementOfCustomAssert, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, newListAssertInstance, overridingErrorMessage, overridingErrorMessage, satisfies, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, satisfiesAnyOfForProxy, satisfiesForProxy, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnError
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.assertj.core.api.Descriptable
as, describedAs
-
-
-
-
Field Detail
-
fileAssert
private AbstractFileAssert<FileAssert> fileAssert
-
-
Constructor Detail
-
FileSizeAssert
public FileSizeAssert(AbstractFileAssert<FileAssert> fileAssert)
-
-
Method Detail
-
returnToFile
public AbstractFileAssert<FileAssert> returnToFile()
Description copied from class:AbstractFileSizeAssert
Returns to the file on which we ran size assertions on.Example:
File file = File.createTempFile("tmp", "bin"); Files.write(file.toPath(), new byte[] {1, 1}); assertThat(file).size().isGreaterThan(1L).isLessThan(5L) .returnToFile().hasBinaryContent(new byte[] {1, 1});
- Specified by:
returnToFile
in classAbstractFileSizeAssert<FileAssert>
- Returns:
- file assertions.
-
-