/** * Cmd_ null headcurrent. * * @throws InvalidElementException the invalid element exception */ @Test public void cmd_NullHEADCURRENT() throws InvalidElementException { final Stage stage = new Stage(); TH.setupLogging(); stage.createLogicalUnit("lux"); CommandCLI cmd = new LUCmdStatus(stage, "lux"); Assert.assertTrue("CMDLUStatus Succeeds.", cmd.execute()); cmd = new LUCmdRevert(stage, "lux", 1, 0); Assert.assertFalse("CMDLURevert Fails.", cmd.execute()); }
/** * Setup test. * * @throws InvalidElementException the invalid element exception */ @Before public void setupTest() throws InvalidElementException { TH.setupTestingEnvironment(true, true); this.stage = new Stage(); TH.setupLogging(); }
/** * Start class test. * * @throws FileNotFoundException the file not found exception */ @BeforeClass public static void startClassTest() throws FileNotFoundException { TH.setupLogging(); Logger.getInstance().info("LOGICAL UNIT COMMANDS TEST"); UIWriter.setOutStream(new PrintStream(new FileOutputStream(TH.clioFile))); }