Merge branch 'master' of https://github.com/bokrosbalint/cicaprojekt
boolean ZPMTest() added to Tester
This commit is contained in:
commit
934c358da8
@ -44,6 +44,17 @@ public class Tester {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void shootONeillsGun(String param) {
|
||||||
|
switch (param) {
|
||||||
|
case "B" :
|
||||||
|
oneill.shootStargate(Stargate.blueStargate);
|
||||||
|
break;
|
||||||
|
case "Y" :
|
||||||
|
oneill.shootStargate(Stargate.yellowStargate);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* custom Test annotation */
|
/* custom Test annotation */
|
||||||
@Target(ElementType.METHOD) // it's for methods
|
@Target(ElementType.METHOD) // it's for methods
|
||||||
@Retention(RetentionPolicy.RUNTIME) // we want to retain annotations in runtime
|
@Retention(RetentionPolicy.RUNTIME) // we want to retain annotations in runtime
|
||||||
@ -177,7 +188,24 @@ public class Tester {
|
|||||||
System.out.println("Sikeres!");
|
System.out.println("Sikeres!");
|
||||||
else System.out.println("Sikertelen!");
|
else System.out.println("Sikertelen!");
|
||||||
|
|
||||||
return results;
|
return results;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
boolean replicatorPosition(){
|
||||||
|
String[] commands = {"loadMap testReplicatorPosition\n",
|
||||||
|
"move O\n"};
|
||||||
|
|
||||||
|
String[] expectedOutputs = {};
|
||||||
|
|
||||||
|
return testOnSequenceOfCommands(commands, expectedOutputs);
|
||||||
|
|
||||||
|
System.out.print("replicatorPosition: ");
|
||||||
|
if(results)
|
||||||
|
System.out.println("Sikeres!");
|
||||||
|
else System.out.println("Sikertelen!");
|
||||||
|
|
||||||
|
return results;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user