src/test/java/com/stijndepestel/geminio/ReplayTest.java
/**
     * Check if a removed listener is not fired.
     */
Check if a removed listener is not fired.
Check if a removed listener is not fired .
@Test
    public void removedListenerShouldNotFire() {
        final ReplayListener listener = new ReplayListener() {
            @Override
            public void replayFailed(final ReplayEvent event) {
                Assert.fail("Should not fire");
            }
            @Override
            public void replayEnded(final ReplayEvent event) {
                Assert.fail("Should not fire");
            }
        };
        this.replay.addReplayListener(listener);
        this.replay.removeReplayListener(listener);
        this.replay.load().startReplay();
    }
@ Test public void removedListenerShouldNotFire ( ) { final ReplayListener listener = new ReplayListener ( ) { @ Override public void replayFailed ( final ReplayEvent event ) { Assert . fail ( "Should not fire" ) ; } @ Override public void replayEnded ( final ReplayEvent event ) { Assert . fail ( "Should not fire" ) ; } } ; this . replay . addReplayListener ( listener ) ; this . replay . removeReplayListener ( listener ) ; this . replay . load ( ) . startReplay ( ) ; }
Check if a removed listener is not fired.
Check if a removed listener is not fired .