aboutsummaryrefslogtreecommitdiffstats
path: root/test/eu
diff options
context:
space:
mode:
authorEduardo Pedroni <ep625@york.ac.uk>2015-07-30 10:37:54 +0200
committerEduardo Pedroni <ep625@york.ac.uk>2015-07-30 10:37:54 +0200
commit41981711f0240976c4fffc861995a8f2efebe191 (patch)
treec0bacae01b855c3be0e64a4d06e1945ea7bd0198 /test/eu
parent3cb8dad3917cad4df95340253db5f5b743844f58 (diff)
Refactored comparators, did a little bit of CLI testing but will need to look into mocking
Diffstat (limited to 'test/eu')
-rw-r--r--test/eu/equalparts/cardbase/cli/CardbaseCLITest.java41
1 files changed, 41 insertions, 0 deletions
diff --git a/test/eu/equalparts/cardbase/cli/CardbaseCLITest.java b/test/eu/equalparts/cardbase/cli/CardbaseCLITest.java
index e84c13c..44b5d01 100644
--- a/test/eu/equalparts/cardbase/cli/CardbaseCLITest.java
+++ b/test/eu/equalparts/cardbase/cli/CardbaseCLITest.java
@@ -355,7 +355,48 @@ public class CardbaseCLITest {
assertEquals("Incorrect state for exit flag.", true, uut.exit);
}
+ /***********************************************************************************
+ * sets() tests, happy path
+ ***********************************************************************************/
+ // mock MTG universe
+
+ /***********************************************************************************
+ * set() tests, happy path
+ ***********************************************************************************/
+ // mock MTG universe
+ /***********************************************************************************
+ * glance() tests, happy path
+ ***********************************************************************************/
+ @Test
+ public void glanceIsPrinted() throws Exception {
+ uut.savePrompt = true;
+
+ uut.exit();
+
+ assertEquals("Incorrect state for exit flag.", false, uut.exit);
+ assertEquals("Incorrect state for save flag.", false, uut.savePrompt);
+
+ uut.exit();
+
+ assertEquals("Incorrect state for exit flag.", true, uut.exit);
+ }
+
+ /***********************************************************************************
+ * peruse() tests, happy path
+ ***********************************************************************************/
+
+ /***********************************************************************************
+ * undo() tests, happy path
+ ***********************************************************************************/
+
+ /***********************************************************************************
+ * remove() tests, happy path
+ ***********************************************************************************/
+
+ /***********************************************************************************
+ * add() tests, happy path
+ ***********************************************************************************/
}