XenonConfiguration { public static int integer(Class<?> subsystem, String property, long defaultValue) { return (int) INSTANCE.getInteger(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 integer() throws Exception { prepareConfig("20"); assertEquals(20, this.config.getInteger(XenonConfigurationTest.class, this.foundProperty, -1)); assertEquals(5, this.config.getInteger(XenonConfigurationTest.class, this.undefined, 5)); prepareConfig("not really an int"); assertEquals(7, this.config.getInteger(XenonConfigurationTest.class, this.foundProperty, 7)); }