@Test public void testParseConfigurationTagsNoValues() throws Exception { when(attributes.getAll()).thenReturn(attributesNamingEnumeration); when(attributesNamingEnumeration.hasMore()).thenReturn(false); final Collection<TaggedPropertySet> taggedPropertySets = new LdapConfigurationStore(new LdapConfigurationStore(), attributes).parseConfiguration(); assertEquals(1, taggedPropertySets.size()); assertEquals(ConfigurationValue.DEFAULT_TAG, taggedPropertySets.iterator().next().tag()); verify(attributes).getAll(); verify(attributesNamingEnumeration).hasMore(); }
public Collection<TaggedPropertySet> parseConfiguration() { Map<String, String> properties = new HashMap<String, String>(keyAttributesMap.size()); for (String key : keyAttributesMap.keySet()) { properties.putAll(convertAttributesToProperties(key, keyAttributesMap.get(key))); } return createTaggedPropertySetsFromProperties(properties); }
LdapConfigurationStore implements ConfigurationStore { public Collection<TaggedPropertySet> parseConfiguration() { Map<String, String> properties = new HashMap<String, String>(keyAttributesMap.size()); for (String key : keyAttributesMap.keySet()) { properties.putAll(convertAttributesToProperties(key, keyAttributesMap.get(key))); } return createTaggedPropertySetsFromProperties(properties); } }
LdapConfigurationStore implements ConfigurationStore { public Collection<TaggedPropertySet> parseConfiguration() { Map<String, String> properties = new HashMap<String, String>(keyAttributesMap.size()); for (String key : keyAttributesMap.keySet()) { properties.putAll(convertAttributesToProperties(key, keyAttributesMap.get(key))); } return createTaggedPropertySetsFromProperties(properties); } LdapConfigurationStore(); private  LdapConfigurationStore(List<String> tags);  LdapConfigurationStore(LdapConfigurationStore oldStore,
                                  String key,
                                  Attributes attributes, String... tags);  LdapConfigurationStore(LdapConfigurationStore oldStore, Attributes attributes, String... tags); }
LdapConfigurationStore implements ConfigurationStore { public Collection<TaggedPropertySet> parseConfiguration() { Map<String, String> properties = new HashMap<String, String>(keyAttributesMap.size()); for (String key : keyAttributesMap.keySet()) { properties.putAll(convertAttributesToProperties(key, keyAttributesMap.get(key))); } return createTaggedPropertySetsFromProperties(properties); } LdapConfigurationStore(); private  LdapConfigurationStore(List<String> tags);  LdapConfigurationStore(LdapConfigurationStore oldStore,
                                  String key,
                                  Attributes attributes, String... tags);  LdapConfigurationStore(LdapConfigurationStore oldStore, Attributes attributes, String... tags); Collection<TaggedPropertySet> parseConfiguration(); }
LdapConfigurationStore implements ConfigurationStore { public Collection<TaggedPropertySet> parseConfiguration() { Map<String, String> properties = new HashMap<String, String>(keyAttributesMap.size()); for (String key : keyAttributesMap.keySet()) { properties.putAll(convertAttributesToProperties(key, keyAttributesMap.get(key))); } return createTaggedPropertySetsFromProperties(properties); } LdapConfigurationStore(); private  LdapConfigurationStore(List<String> tags);  LdapConfigurationStore(LdapConfigurationStore oldStore,
                                  String key,
                                  Attributes attributes, String... tags);  LdapConfigurationStore(LdapConfigurationStore oldStore, Attributes attributes, String... tags); Collection<TaggedPropertySet> parseConfiguration();  }