XenonConfiguration { public static double decimal(Class<?> subsystem, String property, double defaultValue) { return INSTANCE.getDecimal(subsystem, property, defaultValue); } XenonConfiguration(ConfigurationSource source); static double decimal(Class<?> subsystem, String property, double defaultValue); static long number(Class<?> subsystem, String property, long defaultValue); static int integer(Class<?> subsystem, String property, long defaultValue); static long duration(Class<?> subsystem, String property, Duration defaultValue); static long duration(Class<?> subsystem, String property, TimeUnit unit, long duration); static String string(Class<?> subsystem, String property, String defaultValue); static T choice(Class<?> subsystem, String property, Class<T> enumType,
            T defaultValue); static String secret(Class<?> subsystem, String property, String defaultValue); static boolean bool(String subsystem, String property, boolean defaultValue); static boolean bool(Class<?> subsystem, String property, boolean defaultValue);  }
@Test public void decimal() throws Exception { prepareConfig("1.5"); assertEquals(1.5, this.config.getDecimal(XenonConfigurationTest.class, this.foundProperty, 20), 0.001); assertEquals(7, this.config.getDecimal(XenonConfigurationTest.class, this.undefined, 7), 0.001); prepareConfig("hello"); assertEquals(7, this.config.getDecimal(XenonConfigurationTest.class, this.foundProperty, 7), 0.001); }