@Test public void testLongAbnormal() { MyConfigurationManager myManager = new MyConfigurationManager(); DefaultTypedProperty<Long> p = (DefaultTypedProperty<Long>) myManager.getProperty("long", "iKey", "9999999a"); assertNull(null, p.typedValue()); p = (DefaultTypedProperty<Long>) myManager.getProperty("long", "iKey", null); assertNull(null, p.typedValue()); p = (DefaultTypedProperty<Long>) myManager.getProperty("long", "iKey", " "); assertNull(null, 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);  }