XenonConfiguration { public static String string(Class<?> subsystem, String property, String defaultValue) { return INSTANCE.getString(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 string() throws Exception { prepareConfig("abc"); assertEquals("abc", this.config.getString(XenonConfigurationTest.class, this.foundProperty, "xyz")); assertEquals("hello", this.config.getString(XenonConfigurationTest.class, this.undefined, "hello")); prepareConfig("abc"); assertEquals("abc", this.config.getSecret(XenonConfigurationTest.class, this.foundProperty, "xyz")); assertEquals("hello", this.config.getSecret(XenonConfigurationTest.class, this.undefined, "hello")); }