Examples of addLabelAssigmentToEndLine()


Examples of org.libreplan.business.workreports.entities.WorkReportType.addLabelAssigmentToEndLine()

        labelAssigment2.setDefaultLabel(labelDAO
                .findExistingEntityByCode(labelB1));
        labelAssigment2.setPositionNumber(0);

        type.addLabelAssigmentToEndHead(labelAssigment1);
        type.addLabelAssigmentToEndLine(labelAssigment2);

        workReportTypeDAO.save(type);
    }

    private WorkReportType givenWorkReportTypeStored(boolean dateShared,
View Full Code Here

Examples of org.libreplan.business.workreports.entities.WorkReportType.addLabelAssigmentToEndLine()

        WorkReportLabelTypeAssigment labelAssigmentHead = createValidWorkReportLabelTypeAssigment();
        workReportType.addLabelAssigmentToEndHead(labelAssigmentHead);

        WorkReportLabelTypeAssigment labelAssigmentLine = createValidWorkReportLabelTypeAssigment();
        workReportType.addLabelAssigmentToEndLine(labelAssigmentLine);

        try {
            workReportTypeDAO.save(workReportType);
        } catch (ValidationException e) {
            fail("It should throw an exception");
View Full Code Here

Examples of org.libreplan.business.workreports.entities.WorkReportType.addLabelAssigmentToEndLine()

    @Transactional
    public void checkIfLabelTypeWorkReportLabelTypeAssigmentIsNull() {
        WorkReportType workReportType = createValidWorkReportType();
        WorkReportLabelTypeAssigment labelAssigment = createValidWorkReportLabelTypeAssigment();
        labelAssigment.setLabelType(null);
        workReportType.addLabelAssigmentToEndLine(labelAssigment);

        try {
            workReportTypeDAO.save(workReportType);
            fail("It should throw an exception");
        } catch (ValidationException e) {
View Full Code Here

Examples of org.libreplan.business.workreports.entities.WorkReportType.addLabelAssigmentToEndLine()

    @Transactional
    public void checkIfLabelWorkReportLabelTypeAssigmentIsNull() {
        WorkReportType workReportType = createValidWorkReportType();
        WorkReportLabelTypeAssigment labelAssigment = createValidWorkReportLabelTypeAssigment();
        labelAssigment.setDefaultLabel(null);
        workReportType.addLabelAssigmentToEndLine(labelAssigment);

        try {
            workReportTypeDAO.save(workReportType);
            fail("It should throw an exception");
        } catch (ValidationException e) {
View Full Code Here

Examples of org.libreplan.business.workreports.entities.WorkReportType.addLabelAssigmentToEndLine()

    @Transactional
    public void checkIfIndexLabelsAndFieldsAreConsecutive() {
        WorkReportType workReportType = createValidWorkReportType();

        WorkReportLabelTypeAssigment labelAssigment_1 = createValidWorkReportLabelTypeAssigment();
        workReportType.addLabelAssigmentToEndLine(labelAssigment_1);

        WorkReportLabelTypeAssigment labelAssigment_2 = createValidWorkReportLabelTypeAssigment();
        workReportType.addLabelAssigmentToEndLine(labelAssigment_2);

        WorkReportLabelTypeAssigment labelAssigment_3 = createValidWorkReportLabelTypeAssigment();
View Full Code Here

Examples of org.libreplan.business.workreports.entities.WorkReportType.addLabelAssigmentToEndLine()

        WorkReportLabelTypeAssigment labelAssigment_1 = createValidWorkReportLabelTypeAssigment();
        workReportType.addLabelAssigmentToEndLine(labelAssigment_1);

        WorkReportLabelTypeAssigment labelAssigment_2 = createValidWorkReportLabelTypeAssigment();
        workReportType.addLabelAssigmentToEndLine(labelAssigment_2);

        WorkReportLabelTypeAssigment labelAssigment_3 = createValidWorkReportLabelTypeAssigment();
        workReportType.addLabelAssigmentToEndLine(labelAssigment_3);

        // Set not consecutives index labels
View Full Code Here

Examples of org.libreplan.business.workreports.entities.WorkReportType.addLabelAssigmentToEndLine()

        WorkReportLabelTypeAssigment labelAssigment_2 = createValidWorkReportLabelTypeAssigment();
        workReportType.addLabelAssigmentToEndLine(labelAssigment_2);

        WorkReportLabelTypeAssigment labelAssigment_3 = createValidWorkReportLabelTypeAssigment();
        workReportType.addLabelAssigmentToEndLine(labelAssigment_3);

        // Set not consecutives index labels
        labelAssigment_1.setPositionNumber(3);
        labelAssigment_2.setPositionNumber(0);
        labelAssigment_3.setPositionNumber(2);
View Full Code Here

Examples of org.libreplan.business.workreports.entities.WorkReportType.addLabelAssigmentToEndLine()

    @Transactional
    public void checkIfIndexLabelsAndFieldsInitInZero() {
        WorkReportType workReportType = createValidWorkReportType();

        WorkReportLabelTypeAssigment labelAssigment_1 = createValidWorkReportLabelTypeAssigment();
        workReportType.addLabelAssigmentToEndLine(labelAssigment_1);

        WorkReportLabelTypeAssigment labelAssigment_2 = createValidWorkReportLabelTypeAssigment();
        workReportType.addLabelAssigmentToEndLine(labelAssigment_2);

        WorkReportLabelTypeAssigment labelAssigment_3 = createValidWorkReportLabelTypeAssigment();
View Full Code Here

Examples of org.libreplan.business.workreports.entities.WorkReportType.addLabelAssigmentToEndLine()

        WorkReportLabelTypeAssigment labelAssigment_1 = createValidWorkReportLabelTypeAssigment();
        workReportType.addLabelAssigmentToEndLine(labelAssigment_1);

        WorkReportLabelTypeAssigment labelAssigment_2 = createValidWorkReportLabelTypeAssigment();
        workReportType.addLabelAssigmentToEndLine(labelAssigment_2);

        WorkReportLabelTypeAssigment labelAssigment_3 = createValidWorkReportLabelTypeAssigment();
        workReportType.addLabelAssigmentToEndLine(labelAssigment_3);

        // Set repeat indes labels
View Full Code Here

Examples of org.libreplan.business.workreports.entities.WorkReportType.addLabelAssigmentToEndLine()

        WorkReportLabelTypeAssigment labelAssigment_2 = createValidWorkReportLabelTypeAssigment();
        workReportType.addLabelAssigmentToEndLine(labelAssigment_2);

        WorkReportLabelTypeAssigment labelAssigment_3 = createValidWorkReportLabelTypeAssigment();
        workReportType.addLabelAssigmentToEndLine(labelAssigment_3);

        // Set repeat indes labels
        labelAssigment_1.setPositionNumber(1);
        labelAssigment_2.setPositionNumber(2);
        labelAssigment_3.setPositionNumber(3);
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.