Class AggregateAssert<T extends it.tidalwave.util.As>

java.lang.Object
it.tidalwave.ui.test.AggregateAssert<T>

@API(status=EXPERIMENTAL) public class AggregateAssert<T extends it.tidalwave.util.As> extends Object
Assertions for the Aggregate role.
Since:
3.0-ALPHA-3
Author:
Fabrizio Giudici
  • Field Details

    • aggregateType

      @Nonnull protected final Class<T extends it.tidalwave.util.As> aggregateType
      The type of the aggregate.
    • aggregate

      @Nonnull protected final it.tidalwave.role.Aggregate<T extends it.tidalwave.util.As> aggregate
      The Aggregate under inspection.
  • Constructor Details

    • AggregateAssert

      public AggregateAssert()
  • Method Details

    • withExactItemNames

      @Nonnull public ItemsAssert<T> withExactItemNames(@Nonnull String... names)
      Asserts that the Aggregate under test contains all the items whose names are provided.
      Parameters:
      names - the names
      Returns:
      an object for fluent assertions