From 2d4a5a5e8807ac2265683013757693f6b91fcbcb Mon Sep 17 00:00:00 2001 From: Eduardo Pedroni Date: Tue, 10 Nov 2015 21:23:57 +0100 Subject: Fixed a bug where the testbase got overwritten --- test/eu/equalparts/cardbase/cli/CardbaseCLITest.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'test/eu/equalparts/cardbase') diff --git a/test/eu/equalparts/cardbase/cli/CardbaseCLITest.java b/test/eu/equalparts/cardbase/cli/CardbaseCLITest.java index 4524da2..b01f048 100644 --- a/test/eu/equalparts/cardbase/cli/CardbaseCLITest.java +++ b/test/eu/equalparts/cardbase/cli/CardbaseCLITest.java @@ -473,9 +473,8 @@ public class CardbaseCLITest { public void exitAfterAddingSomethingAndWriting() throws Exception { uut.interpretInput("set FRF"); uut.interpretInput("100"); - uut.interpretInput("write testSave.cb"); + uut.interpretInput("write " + tempFolder.newFile().getAbsolutePath()); - testOutput.reset(); try { System.setOut(new PrintStream(testOutput)); uut.interpretInput("exit"); @@ -491,9 +490,8 @@ public class CardbaseCLITest { uut = new CardbaseCLI(TEST_REMOTE, getClass().getResource("/testbase.cb").getFile()); uut.interpretInput("set FRF"); uut.interpretInput("remove 128"); - uut.interpretInput("write"); + uut.interpretInput("write " + tempFolder.newFile().getAbsolutePath()); - testOutput.reset(); try { System.setOut(new PrintStream(testOutput)); uut.interpretInput("exit"); -- cgit v1.2.3