diff --git a/test/main/java/StepDefs.java b/test/main/java/StepDefs.java index eedb777..0377d2b 100644 --- a/test/main/java/StepDefs.java +++ b/test/main/java/StepDefs.java @@ -21,7 +21,7 @@ public class StepDefs { @Given("A jatek inicializalasra kerult") public void gameInitialized() { - Controller.load("src/testpalya.txt"); + Controller.load("test/resources/testpalya.txt"); Controller.Run(); Controller.create(); diff --git a/test/resources/testpalya.txt b/test/resources/testpalya.txt new file mode 100644 index 0000000..4e0f135 --- /dev/null +++ b/test/resources/testpalya.txt @@ -0,0 +1,23 @@ +cistern cistern2 water:0 draw:100:100 +spring spring2 2000 draw:650:100 +pump A 200 water:20 broken:true draw:200:100 +pump B 200 water:10 draw:500:100 +pump C 200 water:50 draw:575:200 +pipe AC2 100 draw:225:125:125:125 +pipe AB 100 draw:225:125:525:125 +pipe BS2 100 draw:525:125:675:125 +pipe CB 100 draw:600:225:525:125 +connectpipe AC2 A +connectpipe AC2 cistern2 +connectpipe AB A +connectpipe AB B +connectpipe BS2 B +connectpipe BS2 spring2 +connectpipe CB B +connectpipe CB C +setpump A AB AC2 +setpump B BS2 AB +mechanic Mec1 A +addplayer A Mec1 +saboteur Sab1 AB +addplayer AB Sab1