@Test public void testMapAbnormal() { MyConfigurationManager myManager = new MyConfigurationManager(); DefaultTypedProperty<Map<String, String>> p = (DefaultTypedProperty<Map<String, String>>) myManager.getProperty("map", "mKey", "1112,,,2345,,12341,,, "); assertNull(p.typedValue()); p = (DefaultTypedProperty<Map<String, String>>) myManager.getProperty("map", "mKey", " "); assertNull(p.typedValue()); p = (DefaultTypedProperty<Map<String, String>>) myManager.getProperty("map", "mKey", null); assertNull(p.typedValue()); p = (DefaultTypedProperty<Map<String, String>>) myManager.getProperty("map", "mKey", ", , ,, "); assertNull(p.typedValue()); p = (DefaultTypedProperty<Map<String, String>>) myManager.getProperty("map", "mKey", ":"); assertNull(p.typedValue()); p = (DefaultTypedProperty<Map<String, String>>) myManager.getProperty("map", "mKey", " : : "); assertNull(p.typedValue()); p = (DefaultTypedProperty<Map<String, String>>) myManager.getProperty("map", "mKey", " :: : "); assertNull(p.typedValue()); }
@Override public <T> TypedProperty<T> getProperty(String key, ValueParser<T> valueParser) { return new DefaultTypedProperty<T>(getProperty(key), valueParser); }
DefaultTypedConfigurationManager extends ConfigurationManagerWrapper implements TypedConfigurationManager { @Override public <T> TypedProperty<T> getProperty(String key, ValueParser<T> valueParser) { return new DefaultTypedProperty<T>(getProperty(key), valueParser); } }
DefaultTypedConfigurationManager extends ConfigurationManagerWrapper implements TypedConfigurationManager { @Override public <T> TypedProperty<T> getProperty(String key, ValueParser<T> valueParser) { return new DefaultTypedProperty<T>(getProperty(key), valueParser); } DefaultTypedConfigurationManager(ConfigurationManager manager); }
DefaultTypedConfigurationManager extends ConfigurationManagerWrapper implements TypedConfigurationManager { @Override public <T> TypedProperty<T> getProperty(String key, ValueParser<T> valueParser) { return new DefaultTypedProperty<T>(getProperty(key), valueParser); } DefaultTypedConfigurationManager(ConfigurationManager manager); @Override TypedProperty<T> getProperty(String key, ValueParser<T> valueParser); }
DefaultTypedConfigurationManager extends ConfigurationManagerWrapper implements TypedConfigurationManager { @Override public <T> TypedProperty<T> getProperty(String key, ValueParser<T> valueParser) { return new DefaultTypedProperty<T>(getProperty(key), valueParser); } DefaultTypedConfigurationManager(ConfigurationManager manager); @Override TypedProperty<T> getProperty(String key, ValueParser<T> valueParser);  }