ConfigurationParser { public static boolean isWritingThreadEnabled() { return "true".equalsIgnoreCase(Configuration.get("writingthread")); } 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 noConfiguredWritingThread() { boolean enabled = ConfigurationParser.isWritingThreadEnabled(); assertThat(enabled).isFalse(); }
@Test public void disabledWritingThread() { Configuration.set("writingthread", "false"); boolean enabled = ConfigurationParser.isWritingThreadEnabled(); assertThat(enabled).isFalse(); }
@Test public void enabledWritingThread() { Configuration.set("writingthread", "true"); boolean enabled = ConfigurationParser.isWritingThreadEnabled(); assertThat(enabled).isTrue(); }