Class AbstractContainerGroupAssert<I extends AbstractContainerGroupAssert<I,C>,C extends ContainerGroup>
java.lang.Object
org.assertj.core.api.AbstractAssert<I,C>
io.github.ascopes.jct.assertions.AbstractContainerGroupAssert<I,C>
- Type Parameters:
I
- the assertion implementation type.C
- the container group type.
- All Implemented Interfaces:
Assert<I,
,C> Descriptable<I>
,ExtensionPoints<I,
C>
- Direct Known Subclasses:
ModuleContainerGroupAssert
,OutputContainerGroupAssert
,PackageContainerGroupAssert
public abstract class AbstractContainerGroupAssert<I extends AbstractContainerGroupAssert<I,C>,C extends ContainerGroup>
extends AbstractAssert<I,C>
Base assertions that can be performed on a container group.
- 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
ModifierConstructorDescriptionprotected
AbstractContainerGroupAssert
(@Nullable C containerGroup, Class<?> selfType) Initialize the container group assertions. -
Method Summary
Modifier and TypeMethodDescriptionlocation()
Get assertions to perform on the location of this container group.<T> AbstractListAssert
<?, List<? extends T>, T, ? extends ObjectAssert<T>> Get assertions for the services loaded by the given service loader.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
-
AbstractContainerGroupAssert
Initialize the container group assertions.- Parameters:
containerGroup
- the container group to assert upon.selfType
- the type of the assertion implementation to use.
-
-
Method Details
-
location
Get assertions to perform on the location of this container group.- Returns:
- the assertions to perform.
- Throws:
AssertionError
- if the object being asserted upon is null.
-
services
public <T> AbstractListAssert<?,List<? extends T>, servicesT, ? extends ObjectAssert<T>> (Class<T> type) Get assertions for the services loaded by the given service loader.- Type Parameters:
T
- the service type.- Parameters:
type
- the class to look up in the service loader.- Returns:
- the assertions across the resultant services that are loaded for the given class.
- Throws:
AssertionError
- if the object being asserted upon is null.NullPointerException
- if the provided class parameter is null.
-