assertj / assertj/assertj-swing
Add methods for checking JTree node expansion/collapsing state in JTreeFixture and JTreeNodeFixture
- Dominant language
- Java
- Stars
- 121
- Forks
- 52
- PR merge metrics
- No merged PRs in 30d
Description
_Issue by **[Tero Paananen](http://jira.codehaus.org/secure/ViewProfile.jspa?name=gorbachev)** from Thu, 4 Nov 2010 13:14:27 -0500_
_Originally opened as http://jira.codehaus.org/browse/FEST-401_
---
It would be very helpful to be able to do something like this:
JTreeFixture fixture = new JTreeFixture(...);
fixture.requireCollapsed("Root/1/1.1/1.1.1");
fixture.requireExpanded("Root/1/1.1/1.1.2");
Same on JTreeNodeFixture:
JTreeNodeFixture fixture = new JTreeNodeFixture(...);
fixture.requireCollapsed();
fixture.requireExpanded();
Currently I have to go dig up the JTree instance, and do that way. I'd prefer
to use fixtures for this.
---
votes (original issue): 0
watches (original issue): 0
Contributor guide
Research direction
Start by reading JTreeFixture and JTreeNodeFixture alongside their existing fixture methods, then check the JTree expansion and collapsing APIs they wrap. The work is done when both fixtures expose the requested state checks for tree paths and current nodes, with tests covering expanded and collapsed cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100