mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-22 21:55:39 +00:00
switched SwissTiming tests to ota2.sportresult.com and "un-ignored" them again
Change-Id: Ifcb466de8e288e38191ad4c7f5259deb718378c9
This commit is contained in:
-2
@@ -41,7 +41,6 @@ public class SwissTimingRaceConfigurationTest {
|
||||
}
|
||||
}
|
||||
|
||||
@Ignore("According to Radek Masnica ('masnica.r@st-software.com') the OTA stuff may not be supported any longer by the SwissTiming Leipzip lab... 2017-05-19")
|
||||
@Test
|
||||
public void testRaceConfig_446483_no_detail_config() throws Exception {
|
||||
URL configFileURL = new URL(MessageFormat.format(SwissTimingReplayServiceImpl.RACE_CONFIG_URL_TEMPLATE, "446483"));
|
||||
@@ -59,7 +58,6 @@ public class SwissTimingRaceConfigurationTest {
|
||||
|
||||
}
|
||||
|
||||
@Ignore("According to Radek Masnica ('masnica.r@st-software.com') the OTA stuff may not be supported any longer by the SwissTiming Leipzip lab... 2017-05-19")
|
||||
@Test
|
||||
public void testRaceConfig_6260_with_detail_config() throws Exception {
|
||||
URL configFileURL = new URL(MessageFormat.format(SwissTimingReplayServiceImpl.RACE_CONFIG_URL_TEMPLATE, "6260"));
|
||||
|
||||
+2
-4
@@ -74,12 +74,11 @@ public class SwissTimingReplayAdapterServiceTest {
|
||||
assertEquals(321920, replayCountListener.rankingMarkCount);
|
||||
}
|
||||
|
||||
@Ignore("According to Radek Masnica ('masnica.r@st-software.com') the OTA stuff may not be supported any longer by the SwissTiming Leipzip lab... 2017-05-19")
|
||||
@Test
|
||||
public void testRaceData_SAW005905_20120805_EqualsOnlineVersion() throws Exception {
|
||||
byte[] localCopy = read(getClass().getResourceAsStream("/SAW005905.20120805.replay"));
|
||||
byte[] onlineCopy = read((InputStream) new URL(
|
||||
"http://live.ota.st-sportservice.com/Replay?id=446495&_start=0").getContent());
|
||||
"http://ota2.sportresult.com/Replay?id=446495&_start=0").getContent());
|
||||
assertArrayEquals(localCopy, onlineCopy);
|
||||
}
|
||||
|
||||
@@ -114,13 +113,12 @@ public class SwissTimingReplayAdapterServiceTest {
|
||||
assertEquals(9500, replayCountListener.rankingMarkCount);
|
||||
}
|
||||
|
||||
@Ignore("According to Radek Masnica ('masnica.r@st-software.com') the OTA stuff may not be supported any longer by the SwissTiming Leipzip lab... 2017-05-19")
|
||||
@Test
|
||||
public void testRaceData_SAW005905_20120805_online() throws Exception {
|
||||
SwissTimingReplayTestListener replayCountListener = new SwissTimingReplayTestListener();
|
||||
// race ID is 450053, as extracted from http://live.ota.st-sportservice.com/service?cmd=unity_race_overview&id=91
|
||||
byte[] onlineCopy = read((InputStream) new URL(
|
||||
"http://live.ota.st-sportservice.com/Replay?id=446495&_start=0").getContent());
|
||||
"http://ota2.sportresult.com/Replay?id=446495&_start=0").getContent());
|
||||
new SwissTimingReplayParserImpl().readData(new ByteArrayInputStream(onlineCopy), replayCountListener);
|
||||
assertEquals(0, replayCountListener.keyFrameIndexSum);
|
||||
assertEquals(715, replayCountListener.keyFrameIndexPositionCount);
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@ import com.sap.sse.util.ByteArrayOutputStreamWithVisibleBuffer;
|
||||
|
||||
public class SwissTimingReplayServiceImpl implements SwissTimingReplayService {
|
||||
|
||||
public static final String RACE_CONFIG_URL_TEMPLATE = "http://live.ota.st-sportservice.com/configuration?_race={0}&effective=1&additional=config";
|
||||
public static final String RACE_CONFIG_URL_TEMPLATE = "http://ota2.sportresult.com/configuration?_race={0}&effective=1&additional=config";
|
||||
|
||||
private static final String SWISSTIMING_DATEFORMAT_PATTERN = "dd.MM.yyyy HH:mm";
|
||||
private static final TimeZone DEFAULT_TIMEZONE = TimeZone.getTimeZone("GMT");
|
||||
|
||||
Reference in New Issue
Block a user