mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-25 06:58:39 +00:00
adjusted test cases to modified result signature of loadRaceLogEvent(...) method
Change-Id: I8e7e02e7f13d0e4750a2f763ae1aaea4ffd72f4e
This commit is contained in:
+1
-1
@@ -77,7 +77,7 @@ public class TestParseAndMigratePassingSideAndControlPointTwoMarks {
|
||||
raceLogEvent.put(FieldNames.RACE_LOG_EVENT_PASS_ID.name(), 1);
|
||||
raceLogEvent.put(FieldNames.RACE_LOG_EVENT_AUTHOR_NAME.name(), "Test Author");
|
||||
raceLogEvent.put(FieldNames.RACE_LOG_EVENT_AUTHOR_PRIORITY.name(), 1);
|
||||
RaceLogCourseDesignChangedEvent event = (RaceLogCourseDesignChangedEvent) dof.loadRaceLogEvent(raceLogEvent);
|
||||
RaceLogCourseDesignChangedEvent event = (RaceLogCourseDesignChangedEvent) dof.loadRaceLogEvent(raceLogEvent).getA();
|
||||
assertEquals(event.getCourseDesign().getFirstWaypoint().getPassingInstructions(), PassingInstruction.Line);
|
||||
assertTrue(waypoint1.containsField(FieldNames.WAYPOINT_PASSINGINSTRUCTIONS.name())
|
||||
&& !waypoint1.containsField(FieldNames.WAYPOINT_PASSINGSIDE.name()));
|
||||
|
||||
+1
-1
@@ -83,7 +83,7 @@ public class TestStoringAndRetrievingRaceLogEventData extends AbstractMongoDBTes
|
||||
DBCollection coll = db.getCollection(RACELOG_TEST_COLLECTION);
|
||||
assertNotNull(coll);
|
||||
DBObject object = coll.findOne();
|
||||
RaceLogFlagEvent readRcEvent = (RaceLogFlagEvent) ((DomainObjectFactoryImpl) PersistenceFactory.INSTANCE.getDefaultDomainObjectFactory()).loadRaceLogEvent(object);
|
||||
RaceLogFlagEvent readRcEvent = (RaceLogFlagEvent) ((DomainObjectFactoryImpl) PersistenceFactory.INSTANCE.getDefaultDomainObjectFactory()).loadRaceLogEvent(object).getA();
|
||||
assertEquals(rcEvent.getLogicalTimePoint(), readRcEvent.getLogicalTimePoint());
|
||||
assertEquals(rcEvent.getId(), readRcEvent.getId());
|
||||
assertEquals(rcEvent.getPassId(), readRcEvent.getPassId());
|
||||
|
||||
Reference in New Issue
Block a user