コード例 #1
0
 @Test
 public void testReporterNotDisabledPredicateAsk() {
   sut = new ReporterNotDisabledPredicate(settings);
   when(settings.getAction()).thenReturn(SendAction.ASK);
   assertTrue(sut.apply(status));
 }
コード例 #2
0
 @Test
 public void testReporterNotDisabledPredicateIgnore() {
   sut = new ReporterNotDisabledPredicate(settings);
   when(settings.getAction()).thenReturn(SendAction.IGNORE);
   assertFalse(sut.apply(status));
 }