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

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


@RunWith(JUnit4.class)
public class ClientCommandSchedulerFactoryTest
{
    @Test
    public void testGetClientCommandScheduler() {
        ClientCommandSchedulerFactory theClientCommandSchedulerFactory = ClientCommandSchedulerFactory.getInstance();
        ClientCommandScheduler theClientCommandScheduler = theClientCommandSchedulerFactory.getClientCommandScheduler();
        assertNotNull(theClientCommandScheduler);

        ClientCommandScheduler theClientCommandScheduler_2 = theClientCommandSchedulerFactory.getClientCommandScheduler();
        assertNotNull(theClientCommandScheduler_2);
        assertSame(theClientCommandScheduler, theClientCommandScheduler_2);
    }
View Full Code Here


        assertSame(theClientCommandScheduler, theClientCommandScheduler_2);
    }

    @Test
    public void testGetClientCommandScheduler_2() {
        ClientCommandSchedulerFactory theClientCommandSchedulerFactory = ClientCommandSchedulerFactory.getInstance();
        ClientCommandScheduler theClientCommandScheduler = theClientCommandSchedulerFactory.getClientCommandScheduler();
        assertNotNull(theClientCommandScheduler);

        theClientCommandSchedulerFactory.setClientCommandSchedulerInstance(new ClientCommandScheduler() {
            public void schedule(ClientCommand aCommand) {}

            public void schedule(ClientCommand aCommand, int aDelay) {}
        });

        ClientCommandScheduler theClientCommandScheduler_2 = theClientCommandSchedulerFactory.getClientCommandScheduler();
        assertNotNull(theClientCommandScheduler_2);
        assertNotSame(theClientCommandScheduler, theClientCommandScheduler_2);

        ClientCommandScheduler theClientCommandScheduler_3 = theClientCommandSchedulerFactory.getClientCommandScheduler();
        assertNotNull(theClientCommandScheduler_3);
        assertSame(theClientCommandScheduler_2, theClientCommandScheduler_3);
    }
View Full Code Here

        assertSame(theClientCommandScheduler_2, theClientCommandScheduler_3);
    }

    @Test
    public void testReset() {
        ClientCommandSchedulerFactory theClientCommandSchedulerFactory = ClientCommandSchedulerFactory.getInstance();
        ClientCommandScheduler theClientCommandScheduler = theClientCommandSchedulerFactory.getClientCommandScheduler();
        assertNotNull(theClientCommandScheduler);

        theClientCommandSchedulerFactory.reset();

        ClientCommandScheduler theClientCommandScheduler_2 = theClientCommandSchedulerFactory.getClientCommandScheduler();
        assertNotNull(theClientCommandScheduler_2);
        assertNotSame(theClientCommandScheduler, theClientCommandScheduler_2);

        ClientCommandScheduler theClientCommandScheduler_3 = theClientCommandSchedulerFactory.getClientCommandScheduler();
        assertNotNull(theClientCommandScheduler_3);
        assertSame(theClientCommandScheduler_2, theClientCommandScheduler_3);
    }
View Full Code Here

TOP

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

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.