assertj / assertj/assertj-swing
JListFixture and JListItemFixture assume Jlist's contain Strings. That's wrong. That contain Objects.
- Vorherrschende Sprache
- Java
- Sterne
- 121
- Forks
- 52
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
_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
Beitragsleitfaden
Rechercherichtung
Beginne damit, JListFixture und JListItemFixture zu finden und zu prüfen, wo sie voraussetzen, dass Listeninhalte Strings sind. Überprüfe alle vorhandenen Tests für diese Fixtures und verifiziere anschließend die Unterstützung für JLists, die beliebige Objects enthalten, sowie für benutzerdefinierte ListCellRenderers; im Issue wird außerdem die Frage aufgeworfen, ob das Hinzufügen eines Elements unterstützt werden sollte.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java
- Bereich
- desktop, testing
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100