void function ( ) { final TickListener loc0 = checker ( ) ; getModel ( ) . register ( loc0 ) ; boolean loc1 = false ; try { getModel ( ) . register ( loc0 ) ; } catch ( final IllegalArgumentException loc2 ) { loc1 = true ; } assertThat ( loc1 ) . isTrue ( ) ; assertThat ( getModel ( ) . getTickListeners ( ) ) . containsExactly ( loc0 ) ; }
tests that adding a listener twice yields no result . concode_field_sep TimeModel.AbstractBuilder<?> builder concode_elem_sep T model concode_field_sep void testDefaultProperties concode_elem_sep void timeLapseSafety concode_elem_sep T getModel concode_elem_sep void removeDuringTick concode_elem_sep void testEvents concode_elem_sep void testTickOrder concode_elem_sep TickListenerChecker checker concode_elem_sep void testTicks concode_elem_sep void testStartStart concode_elem_sep void testStoppedEventOnException concode_elem_sep LimitingTickListener limiter concode_elem_sep void setUp concode_elem_sep void testExceptionPropagation