Esempio n. 1
0
  @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());
  }
Esempio n. 2
0
  @Test
  public void testGetStatus() throws Exception {
    _mockInstallProcess.initialize();

    ProgressTracker progressTracker = getAttribute(ProgressTracker.PERCENT);

    _mockInstallProcess.download();
    _mockInstallProcess.copy();

    Assert.assertEquals(ProgressStatusConstants.COPYING, progressTracker.getStatus());
  }