From 81bac622798ddb2f786513294bad4610e52f6c2d Mon Sep 17 00:00:00 2001 From: Axel Uhl Date: Wed, 21 Mar 2018 09:30:29 +0100 Subject: [PATCH] adjusted test cases to modified result signature of loadRaceLogEvent(...) method Change-Id: I8e7e02e7f13d0e4750a2f763ae1aaea4ffd72f4e --- .../TestParseAndMigratePassingSideAndControlPointTwoMarks.java | 2 +- .../mongodb/test/TestStoringAndRetrievingRaceLogEventData.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java/com.sap.sailing.mongodb.test/src/com/sap/sailing/mongodb/test/TestParseAndMigratePassingSideAndControlPointTwoMarks.java b/java/com.sap.sailing.mongodb.test/src/com/sap/sailing/mongodb/test/TestParseAndMigratePassingSideAndControlPointTwoMarks.java index 0625a6c83f1..0513d18f935 100755 --- a/java/com.sap.sailing.mongodb.test/src/com/sap/sailing/mongodb/test/TestParseAndMigratePassingSideAndControlPointTwoMarks.java +++ b/java/com.sap.sailing.mongodb.test/src/com/sap/sailing/mongodb/test/TestParseAndMigratePassingSideAndControlPointTwoMarks.java @@ -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())); diff --git a/java/com.sap.sailing.mongodb.test/src/com/sap/sailing/mongodb/test/TestStoringAndRetrievingRaceLogEventData.java b/java/com.sap.sailing.mongodb.test/src/com/sap/sailing/mongodb/test/TestStoringAndRetrievingRaceLogEventData.java index df5f58d9331..5aacf31eb5a 100644 --- a/java/com.sap.sailing.mongodb.test/src/com/sap/sailing/mongodb/test/TestStoringAndRetrievingRaceLogEventData.java +++ b/java/com.sap.sailing.mongodb.test/src/com/sap/sailing/mongodb/test/TestStoringAndRetrievingRaceLogEventData.java @@ -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());