assertj / assertj/assertj-swing

JListFixture and JListItemFixture assume Jlist's contain Strings. That's wrong. That contain Objects.

Open
#58 5 comments 0 reactions 0 assignees View on GitHub
bug import from fest-swing Major
Dominant language
Java
Stars
121
Forks
52
PR merge metrics
No merged PRs in 30d

Description

_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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.