mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-10 04:51:07 +00:00
Bug 5185: adding tests to verify course creation with less or more laps
than the course configuration (cleanup)
This commit is contained in:
1 parent
ed2dd83e42
commit
2edf3177af
1 file changed
+5
-3
+5
-3
@@ -339,13 +339,13 @@ public class CourseConfigurationTest extends AbstractSeleniumTest {
|
||||
createCourseFromTemplateBasedCourseConfiguration(10, 8, 1, 3);
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testCreateCourseWithMoreNoOfLapsThanRepeatableParts() {
|
||||
final Pair<CourseConfiguration, CourseConfiguration> result = createCourseFromTemplateBasedCourseConfiguration(
|
||||
2, 2, 1, 2);
|
||||
10, 12, 1, 3);
|
||||
logger.info(result.getA().getJson().toJSONString());
|
||||
logger.info(result.getB().getJson().toJSONString());
|
||||
// todo check the fill up
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -370,7 +370,9 @@ public class CourseConfigurationTest extends AbstractSeleniumTest {
|
||||
final int zeroBasedIndexOfRepeatablePartEnd) {
|
||||
final CourseTemplateDataFactory ctdf = new CourseTemplateDataFactory(sharedServerCtx);
|
||||
final CourseTemplate template = courseTemplateApi.createCourseTemplate(sharedServerCtx,
|
||||
ctdf.constructCourseTemplate(new Pair<>(zeroBasedIndexOfRepeatablePartStart, zeroBasedIndexOfRepeatablePartEnd), numberOfLaps));
|
||||
ctdf.constructCourseTemplate(
|
||||
new Pair<>(zeroBasedIndexOfRepeatablePartStart, zeroBasedIndexOfRepeatablePartEnd),
|
||||
numberOfLaps));
|
||||
// create course configuration from template
|
||||
final CourseConfiguration courseConfiguration = courseConfigurationApi
|
||||
.createCourseConfigurationFromCourseTemplate(ctx, template.getId(), /* optionalRegattaName */ null,
|
||||
|
||||
Reference in new issue
Block a user