Package org.libreplan.business.planner.entities

Examples of org.libreplan.business.planner.entities.Task.resetStatus()


        TaskGroup taskGroup = new TaskGroup();
        taskGroup.addTaskElement(task1);
        taskGroup.addTaskElement(task2);
        assertTrue(taskGroup.isFinished());
        task2.setAdvancePercentage(new BigDecimal("0.0001", new MathContext(4)));
        task2.resetStatus();
        taskGroup.resetStatus();
        assertFalse(taskGroup.isFinished());
    }

    @Test
View Full Code Here


        TaskGroup taskGroup = new TaskGroup();
        taskGroup.addTaskElement(task1);
        taskGroup.addTaskElement(task2);
        assertFalse(taskGroup.isInProgress());
        task2.setAdvancePercentage(new BigDecimal("0.0001", new MathContext(4)));
        task2.resetStatus();
        taskGroup.resetStatus();
        assertTrue(taskGroup.isInProgress());
    }

    public static TaskGroup createValidTaskGroup() {
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.