mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-22 21:55:39 +00:00
Merge remote-tracking branch 'origin/master' into bug4469
This commit is contained in:
+2
-2
@@ -113,7 +113,7 @@ public class CompetitorStoreTest {
|
||||
|
||||
DynamicTeam differentTeam = (DynamicTeam) AbstractLeaderboardTest.createCompetitorWithBoat("Test Competitor").getTeam();
|
||||
differentTeam.setNationality(DomainFactory.INSTANCE.getOrCreateNationality("GHA")); // Ghana
|
||||
CompetitorWithBoat competitor3 = persistentStore2.getOrCreateCompetitorWithBoat(template.getId(), template.getName(), template.getShortName(),
|
||||
DynamicCompetitorWithBoat competitor3 = persistentStore2.getOrCreateCompetitorWithBoat(template.getId(), template.getName(), template.getShortName(),
|
||||
template.getColor(), template.getEmail(), template.getFlagImage(), differentTeam, /* timeOnTimeFactor */
|
||||
null, /* timeOnDistanceAllowanceInSecondsPerNauticalMile */null, null, template.getBoat());
|
||||
assertSame(competitor2, competitor3); // use existing competitor despite the different team
|
||||
@@ -124,7 +124,7 @@ public class CompetitorStoreTest {
|
||||
persistentStore2.allowCompetitorResetToDefaults(competitor2);
|
||||
CompetitorWithBoat competitor4 = persistentStore2.getOrCreateCompetitorWithBoat(template.getId(), template.getName(), template.getShortName(),
|
||||
template.getColor(), template.getEmail(), template.getFlagImage(), differentTeam, /* timeOnTimeFactor */
|
||||
null, /* timeOnDistanceAllowanceInSecondsPerNauticalMile */null, null, template.getBoat());
|
||||
null, /* timeOnDistanceAllowanceInSecondsPerNauticalMile */null, null, competitor3.getBoat());
|
||||
assertSame(competitor2, competitor4); // expecting an in-place update
|
||||
assertEquals(differentTeam.getNationality(), competitor4.getTeam().getNationality());
|
||||
}
|
||||
|
||||
+1
-1
@@ -103,7 +103,7 @@ public class RaceTrackerTest {
|
||||
@Override
|
||||
public void raceRemoved(TrackedRace trackedRace) {
|
||||
}
|
||||
}, Optional.empty());
|
||||
}, Optional.empty(), /* synchronous */ false);
|
||||
synchronized (trackedRaces) {
|
||||
if (trackedRaces[0] == null) {
|
||||
trackedRaces.wait();
|
||||
|
||||
Reference in New Issue
Block a user