assertj-swing
assertj-swing copied to clipboard
requireContains requireNotContains
Issue by Florian SIMON from Fri, 29 Jan 2010 05:18:10 -0600 Originally opened as http://jira.codehaus.org/browse/FEST-301
Hi,
I think that it could bee useful to have methods requireContains and requireNotContains in ComponentContainerFixture.
Because often, a panel not displayed is just a panel wich doesn't exist yet.
In this following example, we make the choice to remove MyPanel everytime we want hide it.
Before Display : we want to verify that the panel named "MyPanel" is not created yet.
container.requireNotContains("MyPanel");
After Display : we want to verify that it is now created and displayed.
container.requireContains("MyPanel"); container.panel("MyPanel").requireVisible();
It is the same idea with Popup (JDialogFixture).
Thanks for your reading
Cheers
Florian
votes (original issue): 0 watches (original issue): 0