From 41981711f0240976c4fffc861995a8f2efebe191 Mon Sep 17 00:00:00 2001 From: Eduardo Pedroni Date: Thu, 30 Jul 2015 10:37:54 +0200 Subject: Refactored comparators, did a little bit of CLI testing but will need to look into mocking --- .../equalparts/cardbase/cli/CardbaseCLITest.java | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) (limited to 'test/eu/equalparts/cardbase/cli') 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 + ***********************************************************************************/ } -- cgit v1.2.3