mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-14 16:20:57 +00:00
rename ->LogEventAuthorImpl (instantiating a class named Abstract* feels wrong)
This commit is contained in:
1 parent
3f9802a8df
commit
101dba0d82
35 files changed
+91
-91
No files matched your search
+2
-2
@@ -9,7 +9,7 @@ import org.junit.Before;
|
||||
|
||||
import com.mongodb.MongoException;
|
||||
import com.sap.sailing.domain.abstractlog.AbstractLogEventAuthor;
|
||||
import com.sap.sailing.domain.abstractlog.impl.AbstractLogEventAuthorImpl;
|
||||
import com.sap.sailing.domain.abstractlog.impl.LogEventAuthorImpl;
|
||||
import com.sap.sailing.domain.base.BoatClass;
|
||||
import com.sap.sailing.domain.base.CourseArea;
|
||||
import com.sap.sailing.domain.base.DomainFactory;
|
||||
@@ -36,7 +36,7 @@ public abstract class AbstractTestStoringAndRetrievingRaceLogInRegatta extends R
|
||||
protected MongoObjectFactory mongoObjectFactory = null;
|
||||
protected DomainObjectFactory domainObjectFactory = null;
|
||||
protected Regatta regatta = null;
|
||||
protected AbstractLogEventAuthor author = new AbstractLogEventAuthorImpl("Test Author", 1);
|
||||
protected AbstractLogEventAuthor author = new LogEventAuthorImpl("Test Author", 1);
|
||||
|
||||
public AbstractTestStoringAndRetrievingRaceLogInRegatta() throws UnknownHostException, MongoException {
|
||||
super();
|
||||
|
||||
+2
-2
@@ -13,7 +13,7 @@ import org.junit.Test;
|
||||
|
||||
import com.mongodb.MongoException;
|
||||
import com.sap.sailing.domain.abstractlog.AbstractLogEventAuthor;
|
||||
import com.sap.sailing.domain.abstractlog.impl.AbstractLogEventAuthorImpl;
|
||||
import com.sap.sailing.domain.abstractlog.impl.LogEventAuthorImpl;
|
||||
import com.sap.sailing.domain.abstractlog.race.RaceLog;
|
||||
import com.sap.sailing.domain.abstractlog.race.RaceLogEventFactory;
|
||||
import com.sap.sailing.domain.abstractlog.race.tracking.DeviceCompetitorMappingEvent;
|
||||
@@ -46,7 +46,7 @@ public class StoreAndLoadDeviceIdentifierTest extends AbstractMongoDBTest {
|
||||
protected static final String group = "group";
|
||||
protected static final String column = "column";
|
||||
protected static final String fleet = "fleet";
|
||||
protected final AbstractLogEventAuthor author = new AbstractLogEventAuthorImpl("author", 0);
|
||||
protected final AbstractLogEventAuthor author = new LogEventAuthorImpl("author", 0);
|
||||
protected RaceLogIdentifier logIdentifier;
|
||||
|
||||
protected MongoObjectFactoryImpl mongoFactory;
|
||||
|
||||
+2
-2
@@ -19,7 +19,7 @@ import org.junit.Test;
|
||||
import com.mongodb.DBObject;
|
||||
import com.mongodb.MongoException;
|
||||
import com.sap.sailing.domain.abstractlog.AbstractLogEventAuthor;
|
||||
import com.sap.sailing.domain.abstractlog.impl.AbstractLogEventAuthorImpl;
|
||||
import com.sap.sailing.domain.abstractlog.impl.LogEventAuthorImpl;
|
||||
import com.sap.sailing.domain.abstractlog.race.RaceLogCourseAreaChangedEvent;
|
||||
import com.sap.sailing.domain.abstractlog.race.RaceLogEvent;
|
||||
import com.sap.sailing.domain.abstractlog.race.RaceLogEventRestoreFactory;
|
||||
@@ -67,7 +67,7 @@ public class StoreAndLoadRaceLogEventsTest extends AbstractMongoDBTest {
|
||||
protected Serializable expectedId = UUID.randomUUID();
|
||||
protected List<Competitor> expectedInvolvedBoats = Collections.emptyList();
|
||||
protected int expectedPassId = 42;
|
||||
private AbstractLogEventAuthor author = new AbstractLogEventAuthorImpl("Test Author", 1);
|
||||
private AbstractLogEventAuthor author = new LogEventAuthorImpl("Test Author", 1);
|
||||
|
||||
public StoreAndLoadRaceLogEventsTest() throws UnknownHostException, MongoException {
|
||||
super();
|
||||
|
||||
+2
-2
@@ -18,7 +18,7 @@ import com.mongodb.BasicDBObject;
|
||||
import com.mongodb.DBCollection;
|
||||
import com.mongodb.DBObject;
|
||||
import com.mongodb.MongoException;
|
||||
import com.sap.sailing.domain.abstractlog.impl.AbstractLogEventAuthorImpl;
|
||||
import com.sap.sailing.domain.abstractlog.impl.LogEventAuthorImpl;
|
||||
import com.sap.sailing.domain.abstractlog.race.RaceLog;
|
||||
import com.sap.sailing.domain.abstractlog.race.RaceLogEventFactory;
|
||||
import com.sap.sailing.domain.abstractlog.race.RaceLogFlagEvent;
|
||||
@@ -194,7 +194,7 @@ public class StoreAndLoadRaceLogsTest extends AbstractMongoDBTest {
|
||||
}
|
||||
|
||||
private RaceLogFlagEvent createRaceLogFlagEvent(Serializable id) {
|
||||
return eventFactory.createFlagEvent(new MillisecondsTimePoint(42), new AbstractLogEventAuthorImpl("Test author", /* priority */ 1), id, Collections.<Competitor> emptyList(),
|
||||
return eventFactory.createFlagEvent(new MillisecondsTimePoint(42), new LogEventAuthorImpl("Test author", /* priority */ 1), id, Collections.<Competitor> emptyList(),
|
||||
42, Flags.ALPHA, Flags.BRAVO, true);
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -11,7 +11,7 @@ import org.junit.Test;
|
||||
import com.mongodb.DB;
|
||||
import com.mongodb.MongoException;
|
||||
import com.sap.sailing.domain.abstractlog.AbstractLogEventAuthor;
|
||||
import com.sap.sailing.domain.abstractlog.impl.AbstractLogEventAuthorImpl;
|
||||
import com.sap.sailing.domain.abstractlog.impl.LogEventAuthorImpl;
|
||||
import com.sap.sailing.domain.abstractlog.race.RaceLog;
|
||||
import com.sap.sailing.domain.abstractlog.race.RaceLogEventFactory;
|
||||
import com.sap.sailing.domain.abstractlog.race.impl.RaceLogImpl;
|
||||
@@ -57,7 +57,7 @@ public class StoreGPSFixTrackTest extends AbstractMongoDBTest {
|
||||
@Test
|
||||
public void testStoreAndLoadFixes() throws TransformationException, NoCorrespondingServiceRegisteredException {
|
||||
TypeBasedServiceFinderFactory factory = new MockSmartphoneImeiServiceFinderFactory();
|
||||
AbstractLogEventAuthor author = new AbstractLogEventAuthorImpl("author", 0);
|
||||
AbstractLogEventAuthor author = new LogEventAuthorImpl("author", 0);
|
||||
Competitor comp = DomainFactory.INSTANCE.getOrCreateCompetitor("comp", "comp", null, null, null);
|
||||
Mark mark = DomainFactory.INSTANCE.getOrCreateMark("mark");
|
||||
MongoObjectFactory mongoObjectFactory = PersistenceFactory.INSTANCE.getMongoObjectFactory(getMongoService(), factory);
|
||||
|
||||
+2
-2
@@ -13,7 +13,7 @@ import com.mongodb.DBCollection;
|
||||
import com.mongodb.DBObject;
|
||||
import com.mongodb.MongoException;
|
||||
import com.sap.sailing.domain.abstractlog.AbstractLogEventAuthor;
|
||||
import com.sap.sailing.domain.abstractlog.impl.AbstractLogEventAuthorImpl;
|
||||
import com.sap.sailing.domain.abstractlog.impl.LogEventAuthorImpl;
|
||||
import com.sap.sailing.domain.abstractlog.race.RaceLogEventFactory;
|
||||
import com.sap.sailing.domain.abstractlog.race.RaceLogFlagEvent;
|
||||
import com.sap.sailing.domain.common.racelog.Flags;
|
||||
@@ -25,7 +25,7 @@ import com.sap.sse.common.impl.MillisecondsTimePoint;
|
||||
|
||||
public class TestStoringAndRetrievingRaceLogEventData extends AbstractMongoDBTest {
|
||||
private static final String RACELOG_TEST_COLLECTION = "racelog_test_collection";
|
||||
private AbstractLogEventAuthor author = new AbstractLogEventAuthorImpl("Test Author", 1);
|
||||
private AbstractLogEventAuthor author = new LogEventAuthorImpl("Test Author", 1);
|
||||
|
||||
public TestStoringAndRetrievingRaceLogEventData() throws UnknownHostException, MongoException {
|
||||
super();
|
||||
|
||||
+2
-2
@@ -20,7 +20,7 @@ import com.mongodb.BasicDBObject;
|
||||
import com.mongodb.DBObject;
|
||||
import com.mongodb.MongoException;
|
||||
import com.sap.sailing.domain.abstractlog.AbstractLogEventAuthor;
|
||||
import com.sap.sailing.domain.abstractlog.impl.AbstractLogEventAuthorImpl;
|
||||
import com.sap.sailing.domain.abstractlog.impl.LogEventAuthorImpl;
|
||||
import com.sap.sailing.domain.abstractlog.race.CompetitorResults;
|
||||
import com.sap.sailing.domain.abstractlog.race.RaceLog;
|
||||
import com.sap.sailing.domain.abstractlog.race.RaceLogCourseAreaChangedEvent;
|
||||
@@ -71,7 +71,7 @@ public class TestStoringAndRetrievingRaceLogInLeaderboards extends RaceLogMongoD
|
||||
String leaderboardName = "TestLeaderboard";
|
||||
final int[] discardIndexResultsStartingWithHowManyRaces = new int[] { 5, 8 };
|
||||
FlexibleLeaderboardImpl leaderboard = null;
|
||||
private AbstractLogEventAuthor author = new AbstractLogEventAuthorImpl("Test Author", 1);
|
||||
private AbstractLogEventAuthor author = new LogEventAuthorImpl("Test Author", 1);
|
||||
|
||||
public TestStoringAndRetrievingRaceLogInLeaderboards() throws UnknownHostException, MongoException {
|
||||
super();
|
||||
|
||||
Reference in new issue
Block a user