mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-06 20:33:54 +00:00
first successful new SwissTiming protocol test
This commit is contained in:
1 parent
b67d8169f9
commit
e908b659a9
1 file changed
+10
+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();
|
||||
|
||||
Reference in new issue
Block a user