implemeted runAllTests command in Menu
This commit is contained in:
parent
eb752eddbb
commit
491924bdb4
@ -1,11 +1,14 @@
|
|||||||
package cicaprojekt;
|
package cicaprojekt;
|
||||||
|
|
||||||
import java.io.BufferedReader;
|
import java.io.BufferedReader;
|
||||||
|
import java.io.Console;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStreamReader;
|
import java.io.InputStreamReader;
|
||||||
|
import java.lang.reflect.InvocationTargetException;
|
||||||
|
|
||||||
public class Menu {
|
public class Menu {
|
||||||
public static void main(String[] args) throws IOException {
|
public static void main(String[] args) throws IOException, InvocationTargetException, IllegalAccessException
|
||||||
|
{
|
||||||
System.out.println("Continuously Integrated Cica Projekt - Proto");
|
System.out.println("Continuously Integrated Cica Projekt - Proto");
|
||||||
System.out.println("Üdvözöllek a Babylon Simulator 2000 játékban! Kérlek válassz egy menüpontot!");
|
System.out.println("Üdvözöllek a Babylon Simulator 2000 játékban! Kérlek válassz egy menüpontot!");
|
||||||
|
|
||||||
@ -41,6 +44,13 @@ public class Menu {
|
|||||||
case "listStargates":
|
case "listStargates":
|
||||||
System.out.println(tester.listStargates());
|
System.out.println(tester.listStargates());
|
||||||
break;
|
break;
|
||||||
|
case "runAllTests":
|
||||||
|
boolean testresult = tester.runAllTests();
|
||||||
|
if (testresult)
|
||||||
|
System.out.println("All tests successful!");
|
||||||
|
else
|
||||||
|
System.out.println("Tests failed!");
|
||||||
|
break;
|
||||||
case "exit":
|
case "exit":
|
||||||
isExiting = true;
|
isExiting = true;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user