Convert { public static String fullName(String packagePart, String className) { String pck = StringUtils.defaultIfBlank(packagePart, ""); if (StringUtils.isNotEmpty(pck)) { pck += "."; } return pck + className; } private  Convert(); static String packagePart(String fullName); static String shortName(String fullName); static String flatName(String bytecodeName); static String bytecodeName(String fullName); static String enclosingClassName(String shortName); static String innerClassName(String enclosingClassName, String shortName); static String fullName(String packagePart, String className);  }
@Test void fullName() throws Exception { assertThat(Convert.fullName(null, "MyClass")).isEqualTo("MyClass"); assertThat(Convert.fullName("","MyClass")).isEqualTo("MyClass"); assertThat(Convert.fullName("org.example", "MyClass")).isEqualTo("org.example.MyClass"); }