@Test public void testToPackageName() { Assert.assertEquals(null, PackageUtil.toPackageName(null)); Assert.assertEquals("", PackageUtil.toPackageName("")); Assert.assertEquals( "template.org.ideyatech.model", PackageUtil.toPackageName("template" + File.separator + "org" + File.separator + "ideyatech" + File.separator + "model")); }
public static String toPackageName(String name) { if (name == null) { return null; } return name.replaceAll(separator, "."); }
PackageUtil { public static String toPackageName(String name) { if (name == null) { return null; } return name.replaceAll(separator, "."); } }
PackageUtil { public static String toPackageName(String name) { if (name == null) { return null; } return name.replaceAll(separator, "."); } private  PackageUtil(); }
PackageUtil { public static String toPackageName(String name) { if (name == null) { return null; } return name.replaceAll(separator, "."); } private  PackageUtil(); static String toPackageName(String name); static String toFolderName(String name); static Properties getDefinitionProperties(); static final Set<String> getTemplateJars(); static Set<String> getTemplateFolders(); }
PackageUtil { public static String toPackageName(String name) { if (name == null) { return null; } return name.replaceAll(separator, "."); } private  PackageUtil(); static String toPackageName(String name); static String toFolderName(String name); static Properties getDefinitionProperties(); static final Set<String> getTemplateJars(); static Set<String> getTemplateFolders(); static final String separator; }