@Test public void testGetPath(){ Folder rootFolder = new Folder(); rootFolder.setName("root"); String path = EntityBuilderHelper.getPath(rootFolder, "test"); Assert.assertEquals("test", path); Folder subFolder = new Folder(); subFolder.setParentFolder(rootFolder); subFolder.setName("subfolder"); path = EntityBuilderHelper.getPath(subFolder, "test"); Assert.assertEquals("subfolder/test", path); }
static String getPath(Folder folder, String name) { return PathUtils.unixPath(getPath(folder).toString(), name); }
EntityBuilderHelper { static String getPath(Folder folder, String name) { return PathUtils.unixPath(getPath(folder).toString(), name); } }
EntityBuilderHelper { static String getPath(Folder folder, String name) { return PathUtils.unixPath(getPath(folder).toString(), name); } private  EntityBuilderHelper(); }
EntityBuilderHelper { static String getPath(Folder folder, String name) { return PathUtils.unixPath(getPath(folder).toString(), name); } private  EntityBuilderHelper();  }
EntityBuilderHelper { static String getPath(Folder folder, String name) { return PathUtils.unixPath(getPath(folder).toString(), name); } private  EntityBuilderHelper();   }