diff options
author | Eduardo Pedroni <e.pedroni91@gmail.com> | 2015-11-10 21:23:57 +0100 |
---|---|---|
committer | Eduardo Pedroni <e.pedroni91@gmail.com> | 2015-11-10 21:23:57 +0100 |
commit | 2d4a5a5e8807ac2265683013757693f6b91fcbcb (patch) | |
tree | 35385745a9c134c64fbfbc95c21def6776d3d5cc /test/eu | |
parent | c34b159f4e36a6257be68c8ce569007ac585cb76 (diff) |
Fixed a bug where the testbase got overwritten
Diffstat (limited to 'test/eu')
-rw-r--r-- | test/eu/equalparts/cardbase/cli/CardbaseCLITest.java | 6 |
1 files changed, 2 insertions, 4 deletions
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"); |