update testLongestRoad
This commit is contained in:
@@ -37,8 +37,6 @@ public class SiedlerGameTest {
|
||||
*/
|
||||
@Test
|
||||
public void testLongestRoad() {
|
||||
HashMap<Config.Faction,Integer> currentLongestRoad = new HashMap<>();
|
||||
//currentLongestRoad.put(Config.Faction.RED,5);
|
||||
List<Config.Faction> factionList = Arrays.asList(Config.Faction.values());
|
||||
|
||||
SiedlerBoard board = new SiedlerBoard();
|
||||
@@ -52,7 +50,7 @@ public class SiedlerGameTest {
|
||||
board.setEdge(new Point(4, 10), new Point(5, 9), new Road(Config.Faction.BLUE,new Point(4, 10),new Point(5, 9)));
|
||||
board.setCorner(new Point(3,7),new Settlement(Config.Faction.BLUE,new Point(3,7)));
|
||||
assertEquals(Config.Faction.BLUE, board.getLongestRoadFaction(factionList));
|
||||
//assertEquals(6,currentLongestRoad.get(Config.Faction.BLUE));
|
||||
assertEquals(6,board.getLongestRoadLenth());
|
||||
//todo prüfen ob länge Stimmt.
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user