@Test public void testInitialStatus() throws Exception { _mockInstallProcess.initialize(); ProgressTracker progressTracker = getAttribute(ProgressTracker.PERCENT); Assert.assertEquals(ProgressStatusConstants.PREPARED, progressTracker.getStatus()); Assert.assertEquals(StringPool.BLANK, progressTracker.getMessage()); Assert.assertEquals(0, progressTracker.getPercent()); }
@Test public void testGetStatus() throws Exception { _mockInstallProcess.initialize(); ProgressTracker progressTracker = getAttribute(ProgressTracker.PERCENT); _mockInstallProcess.download(); _mockInstallProcess.copy(); Assert.assertEquals(ProgressStatusConstants.COPYING, progressTracker.getStatus()); }