From 751d8761de19ad6e768d5742c6c746b22f514868 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sun, 22 Nov 2015 16:02:00 +0100 Subject: Disable debug (step-by-step) mode for tests --- src/ch/epfl/maze/tests/ZooTest.java | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/ch/epfl/maze/tests/ZooTest.java') diff --git a/src/ch/epfl/maze/tests/ZooTest.java b/src/ch/epfl/maze/tests/ZooTest.java index 7170ab9..04b6a79 100644 --- a/src/ch/epfl/maze/tests/ZooTest.java +++ b/src/ch/epfl/maze/tests/ZooTest.java @@ -15,6 +15,8 @@ import org.junit.Test; public class ZooTest extends TestCase { + public static final boolean DEBUG = false; + /** * Tests the behaviour of the Mouse A.I. *

@@ -31,7 +33,7 @@ public class ZooTest extends TestCase { m.addAnimal(new Mouse(m.getStart())); Display display = new Display(simulation); - display.setDebug(true); + display.setDebug(ZooTest.DEBUG); display.run(); } @@ -51,7 +53,7 @@ public class ZooTest extends TestCase { m.addAnimal(new Hamster(m.getStart())); Display display = new Display(simulation); - display.setDebug(true); + display.setDebug(ZooTest.DEBUG); display.run(); } @@ -71,7 +73,7 @@ public class ZooTest extends TestCase { m.addAnimal(new Monkey(m.getStart())); Display display = new Display(simulation); - display.setDebug(true); + display.setDebug(ZooTest.DEBUG); display.run(); } @@ -93,7 +95,7 @@ public class ZooTest extends TestCase { m.addAnimal(new Bear(m.getStart())); Display display = new Display(simulation); - display.setDebug(true); + display.setDebug(ZooTest.DEBUG); display.run(); } @@ -114,7 +116,7 @@ public class ZooTest extends TestCase { m.addAnimal(new Bear(m.getStart())); Display display = new Display(simulation); - display.setDebug(true); + display.setDebug(ZooTest.DEBUG); display.run(); } @@ -135,7 +137,7 @@ public class ZooTest extends TestCase { m.addAnimal(new Panda(m.getStart())); Display display = new Display(simulation); - display.setDebug(true); + display.setDebug(ZooTest.DEBUG); display.run(); } @@ -156,7 +158,7 @@ public class ZooTest extends TestCase { m.addAnimal(new Panda(m.getStart())); Display display = new Display(simulation); - display.setDebug(true); + display.setDebug(ZooTest.DEBUG); display.run(); } -- cgit v1.2.3