@Test public void testPropertyChangedWhenDeriveThrowsException() { final String defaultVal = "hi"; StringDerivedProperty<String> p = new StringDerivedProperty<String>("com.netflix.test", defaultVal, new Function<String, String>() { @Override public String apply(String input) { throw new RuntimeException("oops"); } }); ConfigurationManager.getConfigInstance().setProperty("com.netflix.test", "xyz"); assertEquals("hi", p.getValue()); }
@Override public T getValue() { return derivedValue; }
StringDerivedProperty extends PropertyWrapper<T> { @Override public T getValue() { return derivedValue; } }
StringDerivedProperty extends PropertyWrapper<T> { @Override public T getValue() { return derivedValue; } StringDerivedProperty(String propName, T defaultValue, Function<String, T> decoder); }
StringDerivedProperty extends PropertyWrapper<T> { @Override public T getValue() { return derivedValue; } StringDerivedProperty(String propName, T defaultValue, Function<String, T> decoder); @Override T getValue(); }
StringDerivedProperty extends PropertyWrapper<T> { @Override public T getValue() { return derivedValue; } StringDerivedProperty(String propName, T defaultValue, Function<String, T> decoder); @Override T getValue();  }