java.lang.Object
org.assertj.core.api.AbstractAssert<PathFileObjectAssert,PathFileObject>
io.github.ascopes.jct.assertions.AbstractJavaFileObjectAssert<PathFileObjectAssert,PathFileObject>
io.github.ascopes.jct.assertions.PathFileObjectAssert
- All Implemented Interfaces:
Assert<PathFileObjectAssert,,PathFileObject> Descriptable<PathFileObjectAssert>,ExtensionPoints<PathFileObjectAssert,PathFileObject>
@API(since="0.0.1",
status=STABLE)
public final class PathFileObjectAssert
extends AbstractJavaFileObjectAssert<PathFileObjectAssert,PathFileObject>
Assertions for
Path file objects.- Since:
- 0.0.1
- Author:
- Ashley Scopes
-
Field Summary
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, info, myself, objects, throwUnsupportedExceptionOnEquals -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new instance of this assertion object. -
Method Summary
Modifier and TypeMethodDescriptionPerform an assertion on the file object's absolute path.Perform an assertion on the file object's full path.Methods inherited from class io.github.ascopes.jct.assertions.AbstractJavaFileObjectAssert
binaryContent, content, content, content, kind, lastModified, name, uriMethods inherited from class org.assertj.core.api.AbstractAssert
areEqual, asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, doesNotHaveToString, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, hasToString, inBinary, inHexadecimal, 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, usingComparator, usingComparator, usingDefaultComparator, usingRecursiveAssertion, usingRecursiveAssertion, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnErrorMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.assertj.core.api.Descriptable
as, as, as, describedAs, describedAs
-
Constructor Details
-
PathFileObjectAssert
Create a new instance of this assertion object.- Parameters:
actual- the path file object to assert upon.
-
-
Method Details
-
relativePath
Perform an assertion on the file object's full path.- Returns:
- the assertions for the path.
- Throws:
AssertionError- if the file object is null.
-
absolutePath
Perform an assertion on the file object's absolute path.- Returns:
- the assertions for the path.
- Throws:
AssertionError- if the file object is null.
-