@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); }
@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); }