Package org.libreplan.business.workreports.entities

Examples of org.libreplan.business.workreports.entities.WorkReportLine


     */
    public class WorkReportListRenderer implements RowRenderer {

        @Override
        public void render(Row row, Object data) {
            WorkReportLine workReportLine = (WorkReportLine) data;

            row.setValue(workReportLine);

            // Create textboxes
            if (!getWorkReport().getWorkReportType().getDateIsSharedByLines()) {
View Full Code Here


    }

    @Test
    @Transactional
    public void testSaveWorkReportLine() {
        WorkReportLine workReportLine = createValidWorkReportLine();
        workReportLineDAO.save(workReportLine);
        assertTrue(workReportLineDAO.exists(workReportLine.getId()));
    }
View Full Code Here

    }

    @Test
    @Transactional
    public void testRemoveWorkReportLine() throws InstanceNotFoundException {
        WorkReportLine workReportLine = createValidWorkReportLine();
        workReportLineDAO.save(workReportLine);
        workReportLine.getWorkReport().removeWorkReportLine(workReportLine);
        workReportLineDAO.remove(workReportLine.getId());
        assertFalse(workReportLineDAO.exists(workReportLine.getId()));
    }
View Full Code Here

    @Test
    @Transactional
    public void testListWorkReportLine() {
        int previous = workReportLineDAO.list(WorkReportLine.class).size();

        WorkReportLine workReportType1 = createValidWorkReportLine();
        workReportLineDAO.save(workReportType1);
        WorkReportLine workReportType2 = createValidWorkReportLine();
        workReportLineDAO.save(workReportType1);
        workReportLineDAO.save(workReportType2);

        List<WorkReportLine> list = workReportLineDAO
                .list(WorkReportLine.class);
View Full Code Here

        Resource resource = createValidWorker();

        WorkReport workReport = createValidWorkReport();
        workReportDAO.save(workReport);

        WorkReportLine workReportLine = WorkReportLine.create(workReport);
        workReport.addWorkReportLine(workReportLine);
        workReportLine.setDate(new Date());
        workReportLine.setEffort(EffortDuration.hours(100));
        workReportLine.setResource(resource);
        workReportLine.setOrderElement(createValidOrderElement());
        workReportLine.setTypeOfWorkHours(createValidTypeOfWorkHours());
        return workReportLine;
    }
View Full Code Here

    }

    public Set<WorkReportLine> createValidWorkReportLines() {
        Set<WorkReportLine> workReportLines = new HashSet<WorkReportLine>();

        WorkReportLine workReportLine = createValidWorkReportLine();
        workReportLines.add(workReportLine);

        return workReportLines;
    }
View Full Code Here

TOP

Related Classes of org.libreplan.business.workreports.entities.WorkReportLine

Copyright © 2018 www.massapicom. 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.