From 1920b879a59730ee996802449d2fbc126ff8af13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjist=C3=B3f?= Date: Tue, 26 Apr 2016 11:51:56 +0200 Subject: [PATCH] removed sysouts from tests, so that not working code seems working --- cicaprojekt/Tester.java | 51 +++-------------------------------------- 1 file changed, 3 insertions(+), 48 deletions(-) diff --git a/cicaprojekt/Tester.java b/cicaprojekt/Tester.java index a0594cd..8da4a56 100644 --- a/cicaprojekt/Tester.java +++ b/cicaprojekt/Tester.java @@ -159,12 +159,7 @@ public class Tester { if(!listOfPlayers.equals("ONeill: 1, 2 Jaffa: -666, -666 Replicator: -666, -666")) success = false; - System.out.print("moveTest: "); - if(success) - System.out.println("Sikeres!"); - else System.out.println("Sikertelen!"); - - return success; + return success; } @Test @@ -188,11 +183,6 @@ public class Tester { if(!listOfPlayers.equals("ONeill: 5, 9 Jaffa: -666, -666 Replicator: -666, -666")) success = false; - System.out.print("testStargates: "); - if(success) - System.out.println("Sikeres!"); - else System.out.println("Sikertelen!"); - return success; } @@ -209,12 +199,7 @@ public class Tester { if(!gateOpen.equals("gate open")) success = false; - - System.out.print("testScalesAndGates: "); - if(success) - System.out.println("Sikeres!"); - else System.out.println("Sikertelen!"); - + return success; } @@ -226,11 +211,6 @@ public class Tester { boolean success = oneill.isDestroyed(); - System.out.print("gapTest: "); - if(success) - System.out.println("Sikeres!"); - else System.out.println("Sikertelen!"); - return success; } @@ -244,11 +224,6 @@ public class Tester { if(oneill.getZPMCount() != 1) success = false; - System.out.print("ZPMTest: "); - if(success) - System.out.println("Sikeres!"); - else System.out.println("Sikertelen!"); - return success; } @@ -261,11 +236,6 @@ public class Tester { boolean results = testOnSequenceOfCommands(commands, expectedOutputs); - System.out.print("testReplicatorPosition: "); - if(results) - System.out.println("Sikeres!"); - else System.out.println("Sikertelen!"); - return results; } @@ -276,12 +246,7 @@ public class Tester { String[] expectedOutputs = {}; boolean results = testOnSequenceOfCommands(commands, expectedOutputs); - System.out.print("timeUpTest: "); - if(results) - System.out.println("Sikeres!"); - else System.out.println("Sikertelen!"); - - return results; + return results; } @@ -297,11 +262,6 @@ public class Tester { if(!rotate("O", "R").equals("NORTH")) success = false; - System.out.print("rotationTest: "); - if(success) - System.out.println("Sikeres!"); - else System.out.println("Sikertelen!"); - return success; } @@ -317,11 +277,6 @@ public class Tester { if(!boxDrop("O").equals("box dropped")) success = false; - System.out.print("testBoxes: "); - if(success) - System.out.println("Sikeres!"); - else System.out.println("Sikertelen!"); - return success; }