Search in sources :

Example 1 with ProgressStatusImpl

use of org.glassfish.api.admin.progress.ProgressStatusImpl in project Payara by payara.

the class CommandProgressImplTest method testCreateMirroringChild.

// @BeforeClass
// public static void setUpClass() throws Exception {
// }
// 
// @AfterClass
// public static void tearDownClass() throws Exception {
// }
@Test
public void testCreateMirroringChild() {
    CommandProgressImpl cp = new CommandProgressImpl("first", "a");
    cp.setTotalStepCount(2);
    ProgressStatusMirroringImpl ch1 = cp.createMirroringChild(1);
    assertNotNull(ch1);
    ProgressStatus ch2 = cp.createChild(1);
    assertNotNull(ch1);
    assertTrue(ch2 instanceof ProgressStatusImpl);
}
Also used : ProgressStatus(org.glassfish.api.admin.ProgressStatus) ProgressStatusMirroringImpl(org.glassfish.api.admin.progress.ProgressStatusMirroringImpl) ProgressStatusImpl(org.glassfish.api.admin.progress.ProgressStatusImpl) Test(org.junit.Test)

Aggregations

ProgressStatus (org.glassfish.api.admin.ProgressStatus)1 ProgressStatusImpl (org.glassfish.api.admin.progress.ProgressStatusImpl)1 ProgressStatusMirroringImpl (org.glassfish.api.admin.progress.ProgressStatusMirroringImpl)1 Test (org.junit.Test)1