Isssue with windStore fixed which was introduced during the creation of

the test support bundle.
This commit is contained in:
D049941 committed 2014-02-11 10:13:36 +01:00
1 parent ea47512811
commit 9577657f9e
1 file changed
+7 -7
@@ -301,6 +301,13 @@ public class RacingEventServiceImpl implements RacingEventServiceWithTestSupport
private RacingEventServiceImpl(DomainObjectFactory domainObjectFactory, MongoObjectFactory mongoObjectFactory,
com.sap.sailing.domain.base.DomainFactory baseDomainFactory, MediaDB mediaDb, CompetitorStore competitorStore, WindStore windStore) {
logger.info("Created " + this);
if (windStore == null) {
try {
windStore = MongoWindStoreFactory.INSTANCE.getMongoWindStore(mongoObjectFactory, domainObjectFactory);
} catch (Exception e) {
throw new RuntimeException(e);
}
}
this.baseDomainFactory = baseDomainFactory;
this.domainObjectFactory = domainObjectFactory;
this.mongoObjectFactory = mongoObjectFactory;
@@ -322,13 +329,6 @@ public class RacingEventServiceImpl implements RacingEventServiceWithTestSupport
this.raceLogReplicator = new RaceLogReplicator(this);
this.raceLogScoringReplicator = new RaceLogScoringReplicator(this);
this.mediaLibrary = new MediaLibrary();
if (windStore == null) {
try {
windStore = MongoWindStoreFactory.INSTANCE.getMongoWindStore(mongoObjectFactory, domainObjectFactory);
} catch (Exception e) {
throw new RuntimeException(e);
}
}
this.configurationMap = new DeviceConfigurationMapImpl();
// Add one default leaderboard that aggregates all races currently tracked by this service.