RFR: 8285700: [TreeTableView] graphic property of TreeItem is still visible after collapsing tree

Jeanette Winzenburg fastegal at openjdk.org
Tue Jul 11 14:08:11 UTC 2023


On Tue, 11 Jul 2023 12:38:39 GMT, Karthik P K <kpk at openjdk.org> wrote:

> > Is it possible to write a Unit test as well?
> 
> I tried to write unit test but since it should be checked if the graphic is cleared while collapsing the tree and added back while expanding, I couldn't find out a way to do this. 

I would try to test the state of the graphic of the concrete item - keep track of it on setup and before showing the treetable - after showing, it should/not be part of the visible hierarchy (as appropriate) after expanding/collapsing. When it should be visible also verify that it is at the expected location.

-------------

PR Comment: https://git.openjdk.org/jfx/pull/1172#issuecomment-1630896955


More information about the openjfx-dev mailing list