mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-07 19:42:17 +00:00
bug6216: adding a test case that shows this only occurs with shared coure areas
This commit is contained in:
1 parent
42c8f86f6f
commit
e2691bc7e1
1 file changed
+12
-2
+12
-2
@@ -145,10 +145,20 @@ public class LeagueEventHierarchyOwnershipChangeTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCyclicLeagueHierarchyOwnershipChangeStartingAtEventTerminates() {
|
||||
public void testCyclicLeagueHierarchyOwnershipChangeStartingAtEventTerminatesWithNewCourseArea() {
|
||||
final CourseArea otherCourseArea = new CourseAreaImpl("Other", UUID.randomUUID(), /* centerPosition */ null, /* radius */ null);
|
||||
testCyclicLeagueHierarchyOwnershipChangeStartingAtEventTerminates(otherCourseArea);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCyclicLeagueHierarchyOwnershipChangeStartingAtEventTerminatesWithSharedCourseArea() {
|
||||
testCyclicLeagueHierarchyOwnershipChangeStartingAtEventTerminates(defaultCourseArea);
|
||||
}
|
||||
|
||||
private void testCyclicLeagueHierarchyOwnershipChangeStartingAtEventTerminates(CourseArea courseAreaForSharedLeaderboard) {
|
||||
final Event otherEvent = service.addEvent("Test2", "Test Event 2", TimePoint.now(), TimePoint.now().plus(Duration.ONE_WEEK), "There",
|
||||
/* isPublic */ true, UUID.randomUUID());
|
||||
otherEvent.getVenue().addCourseArea(defaultCourseArea);
|
||||
otherEvent.getVenue().addCourseArea(courseAreaForSharedLeaderboard);
|
||||
try {
|
||||
final LeaderboardGroup sharedLeaderboardGroup = new LeaderboardGroupImpl("LG-shared", "LGDesc-shared",
|
||||
"The shared LG", /* displayGroupsInReverseOrder */ false, Collections.emptyList());
|
||||
|
||||
Reference in new issue
Block a user