test_class.file: cosmic-core/server/src/test/java/com/cloud/ldap/DistinguishedNameParserTest.java
test_class.identifier: DistinguishedNameParserTest
test_case.body: @Test
      public void testParseLeafeNameSingleKeyValue() {
          final String distinguishedName = "key=value";
          final String value = DistinguishedNameParser.parseLeafName(distinguishedName);
  
          assertThat(value, equalTo("value"));
      }
test_case.class_method_signature: DistinguishedNameParserTest.testParseLeafeNameSingleKeyValue()
test_case.full_signature: @Test public void testParseLeafeNameSingleKeyValue()
test_case.identifier: testParseLeafeNameSingleKeyValue
test_case.invocations: parseLeafName assertThat equalTo
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testParseLeafeNameSingleKeyValue()
focal_class.declarator: KEY_VALUE_SEPARATOR = "="
focal_class.modifier: private static final
focal_class.original_string: private static final String KEY_VALUE_SEPARATOR = "=";
focal_class.type: String
focal_class.var_name: KEY_VALUE_SEPARATOR
focal_class.declarator: NAME_SEPARATOR = ","
focal_class.modifier: private static final
focal_class.original_string: private static final String NAME_SEPARATOR = ",";
focal_class.type: String
focal_class.var_name: NAME_SEPARATOR
focal_class.file: cosmic-core/server/src/main/java/com/cloud/ldap/DistinguishedNameParser.java
focal_class.identifier: DistinguishedNameParser
focal_class.class_method_signature: DistinguishedNameParser.parseLeafName(final String distinguishedName)
focal_class.full_signature: public static String parseLeafName(final String distinguishedName)
focal_class.identifier: parseLeafName
focal_class.modifiers: public static
focal_class.parameters: (final String distinguishedName)
focal_class.return: String
focal_class.signature: String parseLeafName(final String distinguishedName)
focal_class.class_method_signature: DistinguishedNameParser.parseValue(final String distinguishedName)
focal_class.full_signature: private static String parseValue(final String distinguishedName)
focal_class.identifier: parseValue
focal_class.modifiers: private static
focal_class.parameters: (final String distinguishedName)
focal_class.return: String
focal_class.signature: String parseValue(final String distinguishedName)
focal_method.body: 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);
          }
      }
focal_method.class_method_signature: DistinguishedNameParser.parseLeafName(final String distinguishedName)
focal_method.full_signature: public static String parseLeafName(final String distinguishedName)
focal_method.identifier: parseLeafName
focal_method.invocations: contains split parseValue parseValue
focal_method.modifiers: public static
focal_method.parameters: (final String distinguishedName)
focal_method.return: String
focal_method.signature: String parseLeafName(final String distinguishedName)