assertj / assertj/assertj-swing
JListFixture and JListItemFixture assume Jlist's contain Strings. That's wrong. That contain Objects.
- Lingua principale
- Java
- Stelle
- 121
- Fork
- 52
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
_Issue by **[Steve Buroff](http://jira.codehaus.org/secure/ViewProfile.jspa?name=hermit69)** from Tue, 15 Dec 2009 07:30:20 -0600_
_Originally opened as http://jira.codehaus.org/browse/FEST-276_
---
A JList can contain any kind of Object, not just a string. The default ListCellRenderer
will display the value returned by the object's toString() value. However, the list's
contents are still objects. In addition, by writing one's own ListCellRenderer you
can display the objects without using their toString(). Fest really needs to
support this. If it already does in some way please let me know.
I think I am probably not the only developer who puts Objexts in a JList and displays
them with a custom ListCellRenderer. For me this is a show
stopper since the application I'm testing has several lists like that.
One other question. Should JListFixture have a way to add an element to the JList?
---
votes (original issue): 0
watches (original issue): 0
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia individuando JListFixture e JListItemFixture e verifica dove presumono che il contenuto delle liste sia costituito da Strings. Esamina i test esistenti per queste fixtures, quindi verifica il supporto per JLists contenenti Objects arbitrari e per ListCellRenderers personalizzati; l’issue solleva inoltre la questione se debba essere supportata l’aggiunta di un elemento.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java
- Ambito
- desktop, testing
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100