@Test public void testToFolderName() { Assert.assertEquals(null, PackageUtil.toFolderName(null)); Assert.assertEquals("", PackageUtil.toFolderName("")); Assert.assertEquals("org" + File.separator + "opentides" + File.separator + "bean", PackageUtil.toFolderName("org.opentides.bean")); Assert.assertEquals( "org" + File.separator + "opentides" + File.separator + "bean" + File.separator + "SystemCodes.java", PackageUtil.toFolderName("org.opentides.bean.SystemCodes.java")); }
public static String toFolderName(String name) { if (name == null) { return null; } if (name.endsWith(".java")) { return name.substring(0, name.length() - 5).replaceAll("\\.", separator) + ".java"; } else { return name.replaceAll("\\.", separator); } }
PackageUtil { public static String toFolderName(String name) { if (name == null) { return null; } if (name.endsWith(".java")) { return name.substring(0, name.length() - 5).replaceAll("\\.", separator) + ".java"; } else { return name.replaceAll("\\.", separator); } } }
PackageUtil { public static String toFolderName(String name) { if (name == null) { return null; } if (name.endsWith(".java")) { return name.substring(0, name.length() - 5).replaceAll("\\.", separator) + ".java"; } else { return name.replaceAll("\\.", separator); } } private  PackageUtil(); }
PackageUtil { public static String toFolderName(String name) { if (name == null) { return null; } if (name.endsWith(".java")) { return name.substring(0, name.length() - 5).replaceAll("\\.", separator) + ".java"; } else { 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 toFolderName(String name) { if (name == null) { return null; } if (name.endsWith(".java")) { return name.substring(0, name.length() - 5).replaceAll("\\.", separator) + ".java"; } else { 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; }