@Test public void getKeysReturnsEachKeyOnce() throws ComponentLookupException { List<String> keys = this.mocker.getComponentUnderTest().getKeys(); Assert.assertEquals(10, keys.size()); Assert.assertFalse(keys.contains("commented")); Assert.assertFalse(keys.contains("#commented")); Assert.assertTrue(keys.contains("an.integer")); Assert.assertTrue(keys.contains("a.boolean")); Assert.assertTrue(keys.contains("space")); Assert.assertTrue(keys.contains("Just.a.keyWord")); }
@Override public List<String> getKeys() { List<String> result = new ArrayList<>(); for (Object key : this.properties.keySet()) { result.add(String.valueOf(key)); } return result; }
LegacyXWikiConfigurationSource implements ConfigurationSource, Initializable { @Override public List<String> getKeys() { List<String> result = new ArrayList<>(); for (Object key : this.properties.keySet()) { result.add(String.valueOf(key)); } return result; } }
LegacyXWikiConfigurationSource implements ConfigurationSource, Initializable { @Override public List<String> getKeys() { List<String> result = new ArrayList<>(); for (Object key : this.properties.keySet()) { result.add(String.valueOf(key)); } return result; }  }
LegacyXWikiConfigurationSource implements ConfigurationSource, Initializable { @Override public List<String> getKeys() { List<String> result = new ArrayList<>(); for (Object key : this.properties.keySet()) { result.add(String.valueOf(key)); } return result; }  @Override void initialize(); @SuppressWarnings("unchecked") @Override T getProperty(String key, T defaultValue); @SuppressWarnings("unchecked") @Override T getProperty(String key, Class<T> valueClass); @SuppressWarnings("unchecked") @Override T getProperty(String key); @Override List<String> getKeys(); @Override boolean containsKey(String key); @Override boolean isEmpty(); }
LegacyXWikiConfigurationSource implements ConfigurationSource, Initializable { @Override public List<String> getKeys() { List<String> result = new ArrayList<>(); for (Object key : this.properties.keySet()) { result.add(String.valueOf(key)); } return result; }  @Override void initialize(); @SuppressWarnings("unchecked") @Override T getProperty(String key, T defaultValue); @SuppressWarnings("unchecked") @Override T getProperty(String key, Class<T> valueClass); @SuppressWarnings("unchecked") @Override T getProperty(String key); @Override List<String> getKeys(); @Override boolean containsKey(String key); @Override boolean isEmpty();  }