ConfigurationParser { public static boolean isAutoShutdownEnabled() { return !"false".equalsIgnoreCase(Configuration.get("autoshutdown")); } private  ConfigurationParser(); static Level getGlobalLevel(); static Map<String, Level> getCustomLevels(); static List<String> getTags(); static boolean isWritingThreadEnabled(); static boolean isAutoShutdownEnabled(); static Level parse(final String property, final Level defaultValue);  }
@Test public void noConfiguredAutoShutdown() { boolean enabled = ConfigurationParser.isAutoShutdownEnabled(); assertThat(enabled).isTrue(); }
@Test public void disabledAutoShutdown() { Configuration.set("autoshutdown", "false"); boolean enabled = ConfigurationParser.isAutoShutdownEnabled(); assertThat(enabled).isFalse(); }
@Test public void enabledAutoShutdown() { Configuration.set("autoshutdown", "true"); boolean enabled = ConfigurationParser.isAutoShutdownEnabled(); assertThat(enabled).isTrue(); }