diff options
author | Eduardo Pedroni <ep625@york.ac.uk> | 2015-07-30 10:37:54 +0200 |
---|---|---|
committer | Eduardo Pedroni <ep625@york.ac.uk> | 2015-07-30 10:37:54 +0200 |
commit | 41981711f0240976c4fffc861995a8f2efebe191 (patch) | |
tree | c0bacae01b855c3be0e64a4d06e1945ea7bd0198 /test/eu/equalparts | |
parent | 3cb8dad3917cad4df95340253db5f5b743844f58 (diff) |
Refactored comparators, did a little bit of CLI testing but will need to look into mocking
Diffstat (limited to 'test/eu/equalparts')
-rw-r--r-- | test/eu/equalparts/cardbase/cli/CardbaseCLITest.java | 41 |
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 + ***********************************************************************************/ } |