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
  • Constructor Details

    • AbstractContainerGroupAssert

      protected AbstractContainerGroupAssert(@Nullable C containerGroup, Class<?> selfType)
      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>,T,? extends ObjectAssert<T>> services(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.