Module it.tidalwave.ui.test
Package it.tidalwave.ui.test
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 Summary
FieldsModifier and TypeFieldDescriptionprotected final it.tidalwave.role.SimpleComposite
<T> The Composite under inspection.The type of the composite. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionwithItemCount
(int count) Asserts that the object under inspection has the given number of items.
-
Field Details
-
compositeType
The type of the composite. -
composite
@Nonnull protected final it.tidalwave.role.SimpleComposite<T extends it.tidalwave.util.As> compositeThe Composite under inspection.
-
-
Constructor Details
-
CompositeAssert
public CompositeAssert()
-
-
Method Details
-
withItemCount
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
-