Package org.tomighty.bus.messages.timer

Examples of org.tomighty.bus.messages.timer.TimerFinished


            finish();
    }

    private void finish() {
        timer.cancel();
        bus.publish(new TimerFinished(state.getPhase()));
    }
View Full Code Here


        TimerTick thirdTick = (TimerTick) messages.get(3);
        assertEquals("Third tick's time", Time.seconds(0), thirdTick.getTime());
        assertEquals("Third tick's phase", Phase.POMODORO, thirdTick.getPhase());
       
        TimerFinished timerFinished = (TimerFinished) messages.get(4);
        assertEquals("Phase when timer finished", Phase.POMODORO, timerFinished.getPhase());
    }
View Full Code Here

TOP

Related Classes of org.tomighty.bus.messages.timer.TimerFinished

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.