Code [Select]
public void testGetCommand() {
System.out.println("getCommand");
ParserImpl instance = new ParserImpl();
Command expResult = null;
for (String string : listCommands) {
string=string.toUpperCase().trim();
System.out.print(string + " --- ");
Command result = instance.getCommand(string);
if (result!=null){
System.out.println("dobre");}
else {assertEquals("OK",expResult, result);
System.out.println("zle");}
}
}
Ja to mam nejak tak, sice neviem ci dobre. A pre GameImpl by ste nemohli niekto postnut?