boolean moveTest() was added to Test

This commit is contained in:
ericnerdo 2016-04-25 19:55:09 +02:00
parent e8bdc59081
commit 9f5c310e12

View File

@ -51,4 +51,18 @@ public class Tester {
}
return testspassed;
}
@Test
boolean moveTest(){
String[] commands = {"loadMap movetest\n",
"listPlayers\n",
"move O",
"listPlayers\n"};
String[] expectedOutputs = {"ONeill: 1,1\n",
"ONeill: 1,2\n"};
return testOnSequenceOfCommands(commands, expectedOutputs);
}
}