Package de.novanic.eventservice.client.event.command.schedule

Examples of de.novanic.eventservice.client.event.command.schedule.GWTCommandScheduler


@PrepareForTest({GWTCommandScheduler.class, GWTCommandScheduler.GWTCommandTimer.class})
public class GWTCommandSchedulerTest
{
    @Test
    public void testSchedule() throws Exception {
        GWTCommandScheduler theGWTCommandScheduler = new GWTCommandScheduler();

        final ClientCommandDummy theClientCommand = new ClientCommandDummy();

        final GWTCommandScheduler.GWTCommandTimer theTimerDummy = new GWTCommandTimerDummy(theClientCommand);
        PowerMockito.whenNew(GWTCommandScheduler.GWTCommandTimer.class).withArguments(theClientCommand).thenReturn(theTimerDummy);

        assertFalse(theClientCommand.isExecuted);

        theGWTCommandScheduler.schedule(theClientCommand);

        assertTrue(theClientCommand.isExecuted);
    }
View Full Code Here

TOP

Related Classes of de.novanic.eventservice.client.event.command.schedule.GWTCommandScheduler

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.