@Test(expected = IllegalArgumentException.class) public void testParseLeafeNameSingleMalformedKeyValue() { final String distinguishedName = "someMalformedKeyValue"; DistinguishedNameParser.parseLeafName(distinguishedName); }
public static String parseLeafName(final String distinguishedName) { if (distinguishedName.contains(NAME_SEPARATOR)) { final String[] parts = distinguishedName.split(NAME_SEPARATOR); return parseValue(parts[0]); } else { return parseValue(distinguishedName); } }
DistinguishedNameParser { public static String parseLeafName(final String distinguishedName) { if (distinguishedName.contains(NAME_SEPARATOR)) { final String[] parts = distinguishedName.split(NAME_SEPARATOR); return parseValue(parts[0]); } else { return parseValue(distinguishedName); } } }
DistinguishedNameParser { public static String parseLeafName(final String distinguishedName) { if (distinguishedName.contains(NAME_SEPARATOR)) { final String[] parts = distinguishedName.split(NAME_SEPARATOR); return parseValue(parts[0]); } else { return parseValue(distinguishedName); } }  }
DistinguishedNameParser { public static String parseLeafName(final String distinguishedName) { if (distinguishedName.contains(NAME_SEPARATOR)) { final String[] parts = distinguishedName.split(NAME_SEPARATOR); return parseValue(parts[0]); } else { return parseValue(distinguishedName); } }  static String parseLeafName(final String distinguishedName); }
DistinguishedNameParser { public static String parseLeafName(final String distinguishedName) { if (distinguishedName.contains(NAME_SEPARATOR)) { final String[] parts = distinguishedName.split(NAME_SEPARATOR); return parseValue(parts[0]); } else { return parseValue(distinguishedName); } }  static String parseLeafName(final String distinguishedName);  }