dropping DB after obtaining it; removed drop() calls for individual collections in test cases

This commit is contained in:
Axel Uhl
2012-06-08 15:18:46 +02:00
parent 8940c4b27e
commit 33b4ecb9cd
4 changed files with 29 additions and 7 deletions
@@ -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);
}
@@ -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;
}
}