first successful new SwissTiming protocol test

This commit is contained in:
Axel Uhl committed 2011-11-02 18:10:03 +01:00
1 parent b67d8169f9
commit e908b659a9
1 file changed
+10
@@ -95,6 +95,16 @@ public class SailMasterConnectivityTest {
assertArrayEquals(new Object[] { "4712", "Not such a wonderful race" }, response.getSections()[2].split(","));
}
@Test
public void testRAC() throws UnknownHostException, IOException {
SailMasterMessage response = connector.sendRequestAndGetResponse("RAC?");
assertEquals("RAC!|2|4711;A wonderful test race|4712;Not such a wonderful race", response.getMessage());
assertArrayEquals(new String[] { "RAC!", "2", "4711;A wonderful test race",
"4712;Not such a wonderful race" }, response.getSections());
assertArrayEquals(new Object[] { "4711", "A wonderful test race" }, response.getSections()[2].split(";"));
assertArrayEquals(new Object[] { "4712", "Not such a wonderful race" }, response.getSections()[3].split(";"));
}
@Test
public void testRaceTime() throws UnknownHostException, IOException, ParseException {
Iterable<Race> races = connector.getRaces();