mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-30 09:26:44 +00:00
dropping DB after obtaining it; removed drop() calls for individual collections in test cases
This commit is contained in:
+7
@@ -2,4 +2,11 @@ package com.sap.sailing.kiworesultimport;
|
||||
|
||||
public interface Verteilung {
|
||||
Iterable<Boat> getBoats();
|
||||
|
||||
/**
|
||||
* Matches <code>sailID</code> with {@link Boat#getSailingNumber()}
|
||||
*
|
||||
* @return <code>null</code> if no such {@link Boat} is found in {@link #getBoats}, or the boat found otherwise.
|
||||
*/
|
||||
Boat getBoatBySailID(String sailID);
|
||||
}
|
||||
|
||||
+10
@@ -26,4 +26,14 @@ public class VerteilungImpl extends AbstractNodeWrapper implements Verteilung {
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boat getBoatBySailID(String sailID) {
|
||||
for (Boat boat : getBoats()) {
|
||||
if (sailID.equals(boat.getSailingNumber())) {
|
||||
return boat;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user