mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-10 22:30:56 +00:00
use boat class display name from BoatClassMasterdata if available; needed to adjust one test case's verdict (505 --> 5O5)
This commit is contained in:
1 parent
3ae92c7afe
commit
cd2c0db907
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -276,7 +276,7 @@ public class SharedDomainFactoryImpl implements SharedDomainFactory {
|
||||
if (result == null && unifiedBoatClassName != null) {
|
||||
BoatClassMasterdata boatClassMasterdata = BoatClassMasterdata.resolveBoatClass(name);
|
||||
if (boatClassMasterdata != null) {
|
||||
result = new BoatClassImpl(name, boatClassMasterdata);
|
||||
result = new BoatClassImpl(boatClassMasterdata.getDisplayName(), boatClassMasterdata);
|
||||
boatClassCache.put(name, result);
|
||||
boatClassCache.put(unifiedBoatClassName, result);
|
||||
boatClassCache.put(boatClassMasterdata.getDisplayName(), result);
|
||||
|
||||
+1
-1
@@ -97,7 +97,7 @@ public class MultipleClassesInRegattaTest {
|
||||
new DummyTrackedRegattaRegistry());
|
||||
|
||||
assertEquals("STG", kiwotest1.getRegatta().getBoatClass().getName());
|
||||
assertEquals("505", kiwotest2.getRegatta().getBoatClass().getName());
|
||||
assertEquals("5O5", kiwotest2.getRegatta().getBoatClass().getName());
|
||||
assertEquals("49er", kiwotest3.getRegatta().getBoatClass().getName());
|
||||
assertEquals("STG", weym470may112014_2.getRegatta().getBoatClass().getName());
|
||||
assertNotSame(kiwotest1.getRegatta(), kiwotest2.getRegatta());
|
||||
|
||||
Reference in new issue
Block a user