コード例 #1
0
 @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();
 }
コード例 #2
0
 @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();
 }