@Test public void testGetLeafPackageName() throws Exception { Package aPackage = Package.getPackage("com.arcbees.gaestudio.server.util"); String leafPackageName = PackageHelper.getLeafPackageName(aPackage); assertEquals("util", leafPackageName); }
public static String getLeafPackageName(Package pack) { String[] subPackages = pack.getName().split("\\."); return subPackages[subPackages.length - 1]; }
PackageHelper { public static String getLeafPackageName(Package pack) { String[] subPackages = pack.getName().split("\\."); return subPackages[subPackages.length - 1]; } }
PackageHelper { public static String getLeafPackageName(Package pack) { String[] subPackages = pack.getName().split("\\."); return subPackages[subPackages.length - 1]; }  }
PackageHelper { public static String getLeafPackageName(Package pack) { String[] subPackages = pack.getName().split("\\."); return subPackages[subPackages.length - 1]; }  static String getLeafPackageName(Package pack); }
PackageHelper { public static String getLeafPackageName(Package pack) { String[] subPackages = pack.getName().split("\\."); return subPackages[subPackages.length - 1]; }  static String getLeafPackageName(Package pack);  }