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

@API(since="0.0.1", status=STABLE) 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 Details

    • FUZZY_MAX_RESULTS

      protected static final int FUZZY_MAX_RESULTS
      Default number of matches to show when performing fuzzy matching.

      This is defined here to allow consistent behaviour across various fuzzy matching operations in all implementations.

      See Also:
    • FUZZY_MIN_SCORE

      protected static final int FUZZY_MIN_SCORE
      Default minimum fuzzy score to require to include results found using fuzzy matching.

      This is defined here to allow consistent behaviour across various fuzzy matching operations in all implementations.

      See Also:
  • 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> clazz)
      Get assertions for the services loaded by the given service loader.
      Type Parameters:
      T - the service type.
      Parameters:
      clazz - 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.