Beispiel #1
0
 @Test
 public void procedure2Success() {
   Procedure2<Object, Object> block =
       new CheckedProcedure2<Object, Object>() {
         @Override
         public void safeValue(Object argument1, Object argument2) {
           // nop
         }
       };
   ListIterate.forEachInBoth(mList("test"), mList("test"), block);
 }
Beispiel #2
0
 @Test(expected = RuntimeException.class)
 public void procedure2RuntimeException() {
   Procedure2<Object, Object> block =
       new CheckedProcedure2<Object, Object>() {
         @Override
         public void safeValue(Object argument1, Object argument2) {
           throw new RuntimeException();
         }
       };
   ListIterate.forEachInBoth(mList("test"), mList("test"), block);
 }