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:
Frank Mittag
2017-08-25 17:09:00 +02:00
parent 20bc27a3da
commit 48162c73be
98 changed files with 1898 additions and 1315 deletions
@@ -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();
@@ -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);
}