mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-30 09:26:44 +00:00
major refacoring and cleanup of RaceLog and RegattaLog events needed for the new way of registering boats and competitors as separate entities -> UI is still not ready for it.
This commit is contained in:
+1
-1
@@ -181,7 +181,7 @@ public class RaceLogReplicationTest extends AbstractLogReplicationTest<RaceLog,
|
||||
assertEquals(courseDesignChangedEvent.getPassId(), replicatedEvent.getPassId());
|
||||
assertEquals(courseDesignChangedEvent.getCreatedAt(), replicatedEvent.getCreatedAt());
|
||||
assertEquals(courseDesignChangedEvent.getLogicalTimePoint(), replicatedEvent.getLogicalTimePoint());
|
||||
assertEquals(Util.size(courseDesignChangedEvent.getInvolvedBoats()), Util.size(replicatedEvent.getInvolvedBoats()));
|
||||
assertEquals(Util.size(courseDesignChangedEvent.getInvolvedCompetitors()), Util.size(replicatedEvent.getInvolvedCompetitors()));
|
||||
compareCourseBase(courseDesignChangedEvent.getCourseDesign(), replicatedEvent.getCourseDesign());
|
||||
} finally {
|
||||
replicaLog.unlockAfterRead();
|
||||
|
||||
+2
-2
@@ -10,7 +10,7 @@ import com.sap.sailing.domain.abstractlog.impl.LogEventAuthorImpl;
|
||||
import com.sap.sailing.domain.abstractlog.regatta.RegattaLog;
|
||||
import com.sap.sailing.domain.abstractlog.regatta.RegattaLogEvent;
|
||||
import com.sap.sailing.domain.abstractlog.regatta.RegattaLogEventVisitor;
|
||||
import com.sap.sailing.domain.abstractlog.regatta.events.impl.RegattaLogRegisterCompetitorEventImpl;
|
||||
import com.sap.sailing.domain.abstractlog.regatta.events.impl.RegattaLogRegisterEntryEventImpl;
|
||||
import com.sap.sailing.domain.base.CompetitorAndBoat;
|
||||
import com.sap.sailing.domain.base.Regatta;
|
||||
import com.sap.sailing.domain.base.impl.RegattaImpl;
|
||||
@@ -34,7 +34,7 @@ public class RegattaLogReplicationTest extends
|
||||
@Before
|
||||
public void createEvent() throws Exception {
|
||||
final CompetitorAndBoat competitorAndBoat = TrackBasedTest.createCompetitorAndBoat("Test Competitor");
|
||||
regattaLogEvent = new RegattaLogRegisterCompetitorEventImpl(t(0), t(0), author, 0, competitorAndBoat.getCompetitor());
|
||||
regattaLogEvent = new RegattaLogRegisterEntryEventImpl(t(0), t(0), author, 0, competitorAndBoat.getCompetitor());
|
||||
// anotherRegattaLogEvent = new RegattaLogRegisterCompetitorEventImpl(t(1), author, t(1), 1, null);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user