mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-05 11:53:53 +00:00
added pwt commons to gwt.ui.test pom.xml
This commit is contained in:
1 parent
df517938f3
commit
2a4e3ec161
4 files changed
+18
-6
No files matched your search
+3
@@ -123,6 +123,9 @@ public class SailMasterDummy implements Runnable {
|
||||
// Average Boat Speed per Leg
|
||||
} else if ("TMD?".equals(sections[0])) {
|
||||
// Timing Data
|
||||
} else if ("VER?".equals(sections[0])) {
|
||||
// Version
|
||||
transceiver.sendMessage("VER!|1.0", os);
|
||||
} else if ("StopServer".equals(sections[0])) {
|
||||
stopped = true;
|
||||
transceiver.sendMessage("Server stopped", os);
|
||||
|
||||
+6
-6
@@ -52,12 +52,12 @@ public class SailMasterConnectorImpl extends SailMasterTransceiver implements Sa
|
||||
|
||||
@Override
|
||||
public Iterable<Race> getRaces() throws UnknownHostException, IOException {
|
||||
SailMasterMessage response = sendRequestAndGetResponse("RaceId");
|
||||
SailMasterMessage response = sendRequestAndGetResponse("RAC?");
|
||||
String[] sections = response.getSections();
|
||||
assertResponseType("RaceId", sections[0]);
|
||||
assertResponseType("RAC!", sections[0]);
|
||||
List<Race> result = new ArrayList<Race>();
|
||||
for (int i=1; i<sections.length; i++) {
|
||||
String[] idAndDescription = sections[i].split(",");
|
||||
String[] idAndDescription = sections[i].split(";");
|
||||
result.add(new RaceImpl(idAndDescription[1], idAndDescription[0]));
|
||||
}
|
||||
return result;
|
||||
@@ -71,7 +71,7 @@ public class SailMasterConnectorImpl extends SailMasterTransceiver implements Sa
|
||||
assertRaceID(raceID, sections[1]);
|
||||
List<Mark> marks = new ArrayList<Mark>();
|
||||
for (int i=2; i<sections.length; i++) {
|
||||
String[] markDetails = sections[i].split(",");
|
||||
String[] markDetails = sections[i].split(";");
|
||||
marks.add(new MarkImpl(markDetails[1], Integer.valueOf(markDetails[0]), Arrays.asList(markDetails).subList(2, markDetails.length)));
|
||||
}
|
||||
return new CourseImpl(raceID, marks);
|
||||
@@ -119,7 +119,7 @@ public class SailMasterConnectorImpl extends SailMasterTransceiver implements Sa
|
||||
assertRaceID(raceID, sections[1]);
|
||||
ArrayList<Competitor> competitors = new ArrayList<Competitor>();
|
||||
for (int i=2; i<sections.length; i++) {
|
||||
String[] competitorDetails = sections[i].split(",");
|
||||
String[] competitorDetails = sections[i].split(";");
|
||||
competitors.add(new CompetitorImpl(competitorDetails[0], competitorDetails[1], competitorDetails[2]));
|
||||
}
|
||||
return new StartListImpl(raceID, competitors);
|
||||
@@ -143,7 +143,7 @@ public class SailMasterConnectorImpl extends SailMasterTransceiver implements Sa
|
||||
assertRaceID(raceID, sections[1]);
|
||||
Map<Integer, Pair<TimePoint, String>> result = new HashMap<Integer, Pair<TimePoint,String>>();
|
||||
for (int i=2; i<sections.length; i+=2) {
|
||||
String[] markTimeDetail = sections[i+1].split(",");
|
||||
String[] markTimeDetail = sections[i+1].split(";");
|
||||
result.put(Integer.valueOf(sections[i]), new Pair<TimePoint, String>(
|
||||
new MillisecondsTimePoint(dateFormat.parse(prefixTimeWithISOToday(markTimeDetail[0]))), markTimeDetail[1]));
|
||||
}
|
||||
|
||||
@@ -10,4 +10,12 @@
|
||||
<artifactId>com.sap.sailing.gwt.ui.test</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
<packaging>eclipse-test-plugin</packaging>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.sap.ui.phoenix</groupId>
|
||||
<artifactId>pwt-sap.ui.commons</artifactId>
|
||||
<version>0.18.0</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
+1
@@ -1,2 +1,3 @@
|
||||
# Module com.sap.sailing.gwt.ui.AdminConsole
|
||||
# RPC service class, partial path of RPC policy file
|
||||
com.sap.sailing.gwt.ui.client.SailingService, C3F8BB2F3F1C57A95E0709E51FC6BF0A.gwt.rpc
|
||||
Reference in new issue
Block a user