Class PackageContainerGroupAssert
java.lang.Object
org.assertj.core.api.AbstractAssert<PackageContainerGroupAssert,PackageContainerGroup>
io.github.ascopes.jct.assertions.AbstractContainerGroupAssert<PackageContainerGroupAssert,PackageContainerGroup>
io.github.ascopes.jct.assertions.PackageContainerGroupAssert
- All Implemented Interfaces:
Assert<PackageContainerGroupAssert,
,PackageContainerGroup> Descriptable<PackageContainerGroupAssert>
,ExtensionPoints<PackageContainerGroupAssert,
PackageContainerGroup>
public final class PackageContainerGroupAssert
extends AbstractContainerGroupAssert<PackageContainerGroupAssert,PackageContainerGroup>
Assertions for package container groups.
- 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
ConstructorDescriptionPackageContainerGroupAssert
(@Nullable PackageContainerGroup containerGroup) Initialize the container group assertions. -
Method Summary
Modifier and TypeMethodDescriptionallFilesExist
(Iterable<String> paths) Assert that all given files exist.allFilesExist
(String... paths) Assert that all given files exist.Get assertions to perform on the class loader associated with this container group.fileDoesNotExist
(String... fragments) Assert that the given file does not exist.fileExists
(String... fragments) Assert that the given file exists.Methods inherited from class io.github.ascopes.jct.assertions.AbstractContainerGroupAssert
location, services
Methods 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, 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, as, as, describedAs, describedAs
-
Constructor Details
-
PackageContainerGroupAssert
Initialize the container group assertions.- Parameters:
containerGroup
- the container group to assert upon.
-
-
Method Details
-
allFilesExist
Assert that all given files exist.- Parameters:
paths
- paths to check for.- Returns:
- this object for further call chaining.
- Throws:
AssertionError
- if the container group is null, or if any of the files do not exist.NullPointerException
- if any of the paths are null.IllegalArgumentException
- if no fragments are provided.
-
allFilesExist
Assert that all given files exist.- Parameters:
paths
- paths to check for.- Returns:
- this object for further call chaining.
- Throws:
AssertionError
- if the container group is null, or if any of the files do not exist.NullPointerException
- if any of the paths are null.
-
classLoader
Get assertions to perform on the class loader associated with this container group.- Returns:
- the assertions to perform.
- Throws:
AssertionError
- if the container group is null.
-
fileDoesNotExist
Assert that the given file does not exist.// Using platform-specific separators. assertions.fileDoesNotExist("foo/bar/baz.txt")...; // Letting JCT infer the correct path separators to use (recommended). assertions.fileDoesNotExist("foo", "bar", "baz.txt");
- Parameters:
fragments
- any additional parts of the path.- Returns:
- this assertion object for further assertions.
- Throws:
AssertionError
- if the file exists, or if the container group is null.NullPointerException
- if any of the fragments are null.IllegalArgumentException
- if no fragments are provided.
-
fileExists
Assert that the given file exists.// Letting JCT infer the correct path separators to use (recommended). assertions.fileExists("foo", "bar", "baz.txt"); // Using platform-specific separators (more likely to produce unexpected results). assertions.fileExists("foo/bar/baz.txt")...;
If the file does not exist, then this object will attempt to find the closest matches and list them in an error message along with the assertion error.
- Parameters:
fragments
- parts of the path.- Returns:
- assertions to perform on the path of the file that exists.
- Throws:
AssertionError
- if the file does not exist, or if the container group is null.NullPointerException
- if any of the fragments are null.IllegalArgumentException
- if no fragments are provided.
-