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

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

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

    • compositeType

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

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

    • CompositeAssert

      public CompositeAssert()
  • Method Details

    • withItemCount

      @Nonnull public ItemsAssert<T> withItemCount(int count)
      Asserts that the object under inspection has the given number of items.
      Parameters:
      count - the expected count of children
      Returns:
      an object for fluent further assertions