Skip to content

Commit

Permalink
fixed c&p naming error
Browse files Browse the repository at this point in the history
  • Loading branch information
kleopatra committed Dec 7, 2020
1 parent 1275c5f commit 007c6f7
Showing 1 changed file with 16 additions and 16 deletions.
Expand Up @@ -68,43 +68,43 @@ public class SkinCleanupTest {
*/
@Test
public void testTreeViewSetRoot() {
TreeView<String> listView = new TreeView<>(createRoot());
installDefaultSkin(listView);
replaceSkin(listView);
listView.setRoot(createRoot());
TreeView<String> treeView = new TreeView<>(createRoot());
installDefaultSkin(treeView);
replaceSkin(treeView);
treeView.setRoot(createRoot());
}

/**
* NPE from event handler to treeModification of root.
*/
@Test
public void testTreeViewAddRootChild() {
TreeView<String> listView = new TreeView<>(createRoot());
installDefaultSkin(listView);
replaceSkin(listView);
listView.getRoot().getChildren().add(createRoot());
TreeView<String> treeView = new TreeView<>(createRoot());
installDefaultSkin(treeView);
replaceSkin(treeView);
treeView.getRoot().getChildren().add(createRoot());
}

/**
* NPE from event handler to treeModification of root.
*/
@Test
public void testTreeViewReplaceRootChildren() {
TreeView<String> listView = new TreeView<>(createRoot());
installDefaultSkin(listView);
replaceSkin(listView);
listView.getRoot().getChildren().setAll(createRoot().getChildren());
TreeView<String> treeView = new TreeView<>(createRoot());
installDefaultSkin(treeView);
replaceSkin(treeView);
treeView.getRoot().getChildren().setAll(createRoot().getChildren());
}

/**
* NPE due to properties listener not removed
*/
@Test
public void testTreeViewRefresh() {
TreeView<String> listView = new TreeView<>();
installDefaultSkin(listView);
replaceSkin(listView);
listView.refresh();
TreeView<String> treeView = new TreeView<>();
installDefaultSkin(treeView);
replaceSkin(treeView);
treeView.refresh();
}

/**
Expand Down

0 comments on commit 007c6f7

Please sign in to comment.