@@ -0,0 +1,1094 @@
+package com.truphone.cascades;%0A%0Aimport java.io.PrintStream;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0Aimport com.truphone.cascades.FakeDevice.FakeDeviceListener;%0Aimport com.truphone.cascades.commands.QmlCommand;%0Aimport com.truphone.cascades.replys.IReply;%0A%0A/**%0A * Test class.%0A * @author STruscott%0A *%0A */%0Apublic final class TestQmlCommand %7B%0A%09/**%0A%09 * Test the key command.%0A%09 * @throws TimeoutException Thrown if the command times out%0A%09 */%0A%09@Test%0A%09public void testKeyCommand() throws TimeoutException %7B%0A%09%09final FakeDeviceListener response = new FakeDeviceListener() %7B%0A%09%09%09@Override%0A%09%09%09public void messageReceived(String message, PrintStream replyStream) %7B%0A%09%09%09%09if (%22qml appContext.function%22.equals(message)) %7B%0A%09%09%09%09%09replyStream.println(FakeDevice.OK_MESSAGE);%0A%09%09%09%09%7D else %7B%0A%09%09%09%09%09Assert.fail(message);%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D;%0A%09%09FakeDevice.DEVICE.getProcess().addListener(response);%0A%09%09final IReply reply = FakeDevice.CONN.transmit(new QmlCommand(%22appContext.function%22), FakeDevice.DEFAULT_TIMEOUT);%0A%09%09FakeDevice.DEVICE.getProcess().removeListener(response);%0A%09%09Assert.assertTrue(reply.isSuccess());%0A%09%7D%0A%7D%0A

Add unit test for the QML Command