renamed Method getTextView to toString in SiedlerBoard
This commit is contained in:
parent
70b2415b6b
commit
6a5b7f2245
|
@ -38,7 +38,7 @@ public class SiedlerBoardTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testLongestRoadSimple() {
|
public void testLongestRoadSimple() {
|
||||||
System.out.println(board.getTextView());
|
System.out.println(board.toString());
|
||||||
|
|
||||||
assertEquals(Config.Faction.BLUE, board.getLongestRoadFaction(factionList));
|
assertEquals(Config.Faction.BLUE, board.getLongestRoadFaction(factionList));
|
||||||
assertEquals(6, board.getLongestRoadLength());
|
assertEquals(6, board.getLongestRoadLength());
|
||||||
|
@ -47,7 +47,7 @@ public class SiedlerBoardTest {
|
||||||
@Test
|
@Test
|
||||||
public void testLongestRoadWithInterrupt() {
|
public void testLongestRoadWithInterrupt() {
|
||||||
board.setCorner(new Point(4, 10), new Settlement(Config.Faction.RED, new Point(4, 10)));
|
board.setCorner(new Point(4, 10), new Settlement(Config.Faction.RED, new Point(4, 10)));
|
||||||
System.out.println(board.getTextView());
|
System.out.println(board.toString());
|
||||||
|
|
||||||
assertEquals(Config.Faction.BLUE, board.getLongestRoadFaction(factionList));
|
assertEquals(Config.Faction.BLUE, board.getLongestRoadFaction(factionList));
|
||||||
assertEquals(5, board.getLongestRoadLength());
|
assertEquals(5, board.getLongestRoadLength());
|
||||||
|
|
Loading…
Reference in New Issue