assertj / assertj/assertj-swing
JListFixture and JListItemFixture assume Jlist's contain Strings. That's wrong. That contain Objects.
- Lenguaje dominante
- Java
- Estrellas
- 121
- Forks
- 52
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
_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
Guía de contribución
Línea de trabajo
Comienza localizando JListFixture y JListItemFixture e inspecciona dónde asumen que el contenido de las listas son Strings. Revisa las pruebas existentes para estos fixtures y, después, verifica la compatibilidad con JLists que contengan Objects arbitrarios y con ListCellRenderers personalizados; el issue también plantea si debería admitirse añadir un elemento.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- java
- Área
- desktop, testing
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100