@Test public void testModel() { TreeItem model = TreeModelUtils.prepareTreeModel(FileTreeTest.testDir(), null); Assert.assertNotNull(model); Assert.assertTrue(model.getChildren().size() == FileTreeTest.H_NAMES.length); for (TreeItem item : model.getChildren()) { List<TreeItem> children = item.getChildren(); Assert.assertTrue(children.size() == FileTreeTest.SM_NAMES.length); } }
public static TreeItem prepareTreeModel(File homeFolder, TreeModelFilter filter) { return prepareTreeModel(homeFolder, filter, new FileFilter() { @Override public boolean accept(File pathname) { return pathname.isDirectory(); } }); }
TreeModelUtils { public static TreeItem prepareTreeModel(File homeFolder, TreeModelFilter filter) { return prepareTreeModel(homeFolder, filter, new FileFilter() { @Override public boolean accept(File pathname) { return pathname.isDirectory(); } }); } }
TreeModelUtils { public static TreeItem prepareTreeModel(File homeFolder, TreeModelFilter filter) { return prepareTreeModel(homeFolder, filter, new FileFilter() { @Override public boolean accept(File pathname) { return pathname.isDirectory(); } }); }  }
TreeModelUtils { public static TreeItem prepareTreeModel(File homeFolder, TreeModelFilter filter) { return prepareTreeModel(homeFolder, filter, new FileFilter() { @Override public boolean accept(File pathname) { return pathname.isDirectory(); } }); }  static TreeItem prepareTreeModel(File homeFolder, TreeModelFilter filter); static TreeItem prepareTreeModel(File homeFolder, TreeModelFilter filter, FileFilter fileFilter); }
TreeModelUtils { public static TreeItem prepareTreeModel(File homeFolder, TreeModelFilter filter) { return prepareTreeModel(homeFolder, filter, new FileFilter() { @Override public boolean accept(File pathname) { return pathname.isDirectory(); } }); }  static TreeItem prepareTreeModel(File homeFolder, TreeModelFilter filter); static TreeItem prepareTreeModel(File homeFolder, TreeModelFilter filter, FileFilter fileFilter);  }