assertj / assertj/assertj-swing
requireContains requireNotContains
- Lingua principale
- Java
- Stelle
- 121
- Fork
- 52
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
_Issue by **[Florian SIMON](http://jira.codehaus.org/secure/ViewProfile.jspa?name=florian_simon98)** 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
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Individua i punti di ingresso di ComponentContainerFixture e JDialogFixture e leggi le asserzioni esistenti sul contenimento e sulla visibilità. Controlla i test dei fixture circostanti, se presenti, per comprendere le convenzioni attuali relative agli errori. Il lavoro è completato quando entrambi i fixture supportano requireContains e requireNotContains per i controlli descritti del pannello e del popup, con casi di presenza e assenza coperti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java
- Ambito
- desktop, testing
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100