Search in sources :

Example 1 with EmptyCommand

use of com.canoo.dp.impl.remoting.legacy.communication.EmptyCommand in project dolphin-platform by canoo.

the class ClientConnectorTests method testSevereLogWhenCommandNotFound.

@Test
public void testSevereLogWhenCommandNotFound() {
    clientConnector.dispatchHandle(new EmptyCommand());
    syncAndWaitUntilDone();
    assertOnlySyncCommandWasTransmitted();
}
Also used : EmptyCommand(com.canoo.dp.impl.remoting.legacy.communication.EmptyCommand) Test(org.testng.annotations.Test)

Example 2 with EmptyCommand

use of com.canoo.dp.impl.remoting.legacy.communication.EmptyCommand in project dolphin-platform by canoo.

the class ClientConnectorTests method syncAndWaitUntilDone.

private void syncAndWaitUntilDone() {
    clientConnector.send(new EmptyCommand(), new OnFinishedHandler() {

        public void onFinished() {
            syncDone.countDown();
        }
    });
    Assert.assertTrue(waitForLatch());
}
Also used : EmptyCommand(com.canoo.dp.impl.remoting.legacy.communication.EmptyCommand) OnFinishedHandler(com.canoo.dp.impl.client.legacy.communication.OnFinishedHandler)

Aggregations

EmptyCommand (com.canoo.dp.impl.remoting.legacy.communication.EmptyCommand)2 OnFinishedHandler (com.canoo.dp.impl.client.legacy.communication.OnFinishedHandler)1 Test (org.testng.annotations.Test)1