Package org.wicketstuff.progressbar.spring

Examples of org.wicketstuff.progressbar.spring.Task.reset()


    taskService.finish(taskId);
    assertNull("Task removed from service with finish",
        taskService.getTask(taskId));

    data[0] = 0;
    task.reset();
    assertEquals("Task progress is 0 after reset", 0, task.getProgress());
    // cancel should stop task at 50%
    task.cancel();
    Long newTaskId = taskService.scheduleAndStart(task);
    assertFalse("Unique id generated", taskId.equals(newTaskId));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.