@Test public void isLogable_shoud_return_true_if_system_property_queryablelogDisable_is_not_null() { SimpleQueriableLoggerStrategy strategy = new SimpleQueriableLoggerStrategy(); assertThat(strategy.isLoggable("anyAction", SQueriableLogSeverity.BUSINESS)).isTrue(); }
@Test public void isLogable_shoud_return_false_if_system_property_queryablelogDisable_is_null() { System.setProperty(DISABLE_LOG_KEY, "true"); SimpleQueriableLoggerStrategy strategy = new SimpleQueriableLoggerStrategy(); assertThat(strategy.isLoggable("anyAction", SQueriableLogSeverity.BUSINESS)).isFalse(); }