mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-16 15:13:31 +00:00
Currently deactivated CompetitorRegistrationType OPEN_MODERATED. The
support for this type isn't available yet, which means we do not want users to select it by now.
This commit is contained in:
1 parent
7888cf3835
commit
7348ee1665
3 files changed
+8
-6
No files matched your search
+5
-3
@@ -18,7 +18,8 @@ public enum CompetitorRegistrationType {
|
||||
CLOSED(false, false),
|
||||
|
||||
/** Competitors are registering themselve, but the regatta owner has to confirm the registration. */
|
||||
OPEN_MODERATED(true, true),
|
||||
// TODO Currently not supported -> implement later
|
||||
// OPEN_MODERATED(true, true),
|
||||
|
||||
/** Competitors are registering themselves without the need of confirmation. */
|
||||
OPEN_UNMODERATED(true, false);
|
||||
@@ -103,8 +104,9 @@ public enum CompetitorRegistrationType {
|
||||
return stringMessages.competitorRegistrationTypeClosed();
|
||||
case OPEN_UNMODERATED:
|
||||
return stringMessages.competitorRegistrationTypeOpenUnmoderated();
|
||||
case OPEN_MODERATED:
|
||||
return stringMessages.competitorRegistrationTypeOpenModerated();
|
||||
// TODO activate when OPEN_MODERATED type is implemented
|
||||
// case OPEN_MODERATED:
|
||||
// return stringMessages.competitorRegistrationTypeOpenModerated();
|
||||
default:
|
||||
return this.name();
|
||||
}
|
||||
|
||||
+2
-2
@@ -227,7 +227,7 @@ public class TestStoringAndLoadingEventsAndRegattas extends AbstractMongoDBTest
|
||||
final String regattaBaseName = "Kieler Woche";
|
||||
BoatClass boatClass = DomainFactory.INSTANCE.getOrCreateBoatClass("29erXX", /* typicallyStartsUpwind */ true);
|
||||
Regatta regatta = createRegatta(RegattaImpl.getDefaultName(regattaBaseName, boatClass.getName()), boatClass,
|
||||
/* canBoatsOfCompetitorsChangePerRace */ true, CompetitorRegistrationType.OPEN_MODERATED, regattaStartDate, regattaEndDate, /* persistent */ true,
|
||||
/* canBoatsOfCompetitorsChangePerRace */ true, CompetitorRegistrationType.CLOSED, regattaStartDate, regattaEndDate, /* persistent */ true,
|
||||
DomainFactory.INSTANCE.createScoringScheme(ScoringSchemeType.LOW_POINT), courseArea, OneDesignRankingMetric::new);
|
||||
mof.storeRegatta(regatta);
|
||||
|
||||
@@ -241,7 +241,7 @@ public class TestStoringAndLoadingEventsAndRegattas extends AbstractMongoDBTest
|
||||
assertEquals(loadedRegatta.getDefaultCourseArea().getName(), courseArea.getName());
|
||||
assertEquals(loadedRegatta.getStartDate(), regattaStartDate);
|
||||
assertEquals(loadedRegatta.getEndDate(), regattaEndDate);
|
||||
assertTrue(loadedRegatta.getCompetitorRegistrationType() == CompetitorRegistrationType.OPEN_MODERATED);
|
||||
assertTrue(loadedRegatta.getCompetitorRegistrationType() == CompetitorRegistrationType.CLOSED);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
+1
-1
@@ -104,7 +104,7 @@ public class RegattasResourceTest extends AbstractJaxRsApiTest {
|
||||
public Regatta call() throws Exception {
|
||||
return racingEventService.createRegatta(openRegattaName, boatClassName,
|
||||
/* canBoatsOfCompetitorsChangePerRace */ true,
|
||||
CompetitorRegistrationType.OPEN_MODERATED, secret, startDate, endDate,
|
||||
CompetitorRegistrationType.OPEN_UNMODERATED, secret, startDate, endDate,
|
||||
UUID.randomUUID(), series, /* persistent */ true,
|
||||
DomainFactory.INSTANCE.createScoringScheme(ScoringSchemeType.LOW_POINT), null,
|
||||
/* buoyZoneRadiusInHullLengths */2.0, /* useStartTimeInference */ true,
|
||||
|
||||
Reference in new issue
Block a user