aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/eu/equalparts/cardbase/cli/CardbaseCLITest.java6
-rw-r--r--todo2
2 files changed, 2 insertions, 6 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");
diff --git a/todo b/todo
index 53a4730..9a0635b 100644
--- a/todo
+++ b/todo
@@ -5,7 +5,5 @@ Cardbase:
CardbaseCLI:
* undo, add, remove
- * refactor exit tests, shouldnt need to look at flag
- * remove invalid code test
To pass: happy path remove \ No newline at end of file