assertLayoutConstraint
Asserts the matched node is placed under the layout constraint expected by its parent, and returns this interaction for chaining.
The constraint is read from the parent's layout manager, so expected takes the form that manager places a child with:
a BorderLayout region, e.g. BorderLayout.NORTH;
a java.awt.GridBagConstraints, compared field by field.
A parent laid out by any other manager fails naming that manager. That includes a java.awt.CardLayout, which reports nothing about the child behind a card name; a deck is asserted on through the card it shows, with assertIsVisible and assertIsNotVisible.
Return
this interaction, for chaining a further assertion.
Parameters
expected
the placement the parent's layout manager must report for this child.