Examples of BaseCalendarListDTO


Examples of org.libreplan.ws.calendars.api.BaseCalendarListDTO

        String codeBaseCalendar = getUniqueName();
        BaseCalendarDTO bc2 = new BaseCalendarDTO(codeBaseCalendar,
                getUniqueName(), null, null, calendarDatas);

        BaseCalendarListDTO baseCalendars = createBaseCalendarListDTO(bc1, bc2);

        List<InstanceConstraintViolationsDTO> instanceConstraintViolationsList = calendarService
                .addBaseCalendars(baseCalendars).instanceConstraintViolationsList;

        assertTrue(instanceConstraintViolationsList.toString(),
View Full Code Here

Examples of org.libreplan.ws.calendars.api.BaseCalendarListDTO

        /* Build Base Calendar list. */
        BaseCalendarDTO bc1 = new BaseCalendarDTO(getUniqueName(),
                getUniqueName(), null, calendarExceptions,
                new ArrayList<CalendarDataDTO>());

        BaseCalendarListDTO baseCalendars = createBaseCalendarListDTO(bc1);

        List<InstanceConstraintViolationsDTO> instanceConstraintViolationsList = calendarService
                .addBaseCalendars(baseCalendars).instanceConstraintViolationsList;

        assertTrue(instanceConstraintViolationsList.toString(),
View Full Code Here

Examples of org.libreplan.ws.calendars.api.BaseCalendarListDTO

        String codeBaseCalendar = getUniqueName();
        BaseCalendarDTO bc2 = new BaseCalendarDTO(codeBaseCalendar,
                getUniqueName(), null, null, calendarDatas);

        BaseCalendarListDTO baseCalendars = createBaseCalendarListDTO(bc2);

        List<InstanceConstraintViolationsDTO> instanceConstraintViolationsList = calendarService
                .addBaseCalendars(baseCalendars).instanceConstraintViolationsList;

        assertTrue(instanceConstraintViolationsList.toString(),
View Full Code Here

Examples of org.libreplan.ws.calendars.api.BaseCalendarListDTO

        for (BaseCalendarDTO c : calendarDTOs) {
            baseCalendarList.add(c);
        }

        return new BaseCalendarListDTO(baseCalendarList);

    }
View Full Code Here

Examples of org.libreplan.ws.calendars.api.BaseCalendarListDTO

    @Test
    @Transactional
    public void exportBaseCalendars() {
        int previous = baseCalendarDAO.getBaseCalendars().size();

        BaseCalendarListDTO baseCalendars = calendarService.getBaseCalendars();
        assertThat(baseCalendars.baseCalendars.size(), equalTo(previous));
    }
View Full Code Here

Examples of org.libreplan.ws.calendars.api.BaseCalendarListDTO

    public void exportBaseCalendars2() {
        int previous = baseCalendarDAO.getBaseCalendars().size();

        BaseCalendar calendar = givenBaseCalendarStored();

        BaseCalendarListDTO baseCalendars = calendarService.getBaseCalendars();
        assertThat(baseCalendars.baseCalendars.size(), equalTo(previous + 1));

        for (BaseCalendarDTO calendarDTO : baseCalendars.baseCalendars)
            if (calendarDTO.code.equals(calendar.getCode())) {
                assertThat(calendarDTO.code, equalTo(calendar.getCode()));
View Full Code Here

Examples of org.libreplan.ws.calendars.api.BaseCalendarListDTO

    @Transactional(readOnly = true)
    public BaseCalendarListDTO getBaseCalendars() {
        // Avoid ResourceCalendar entities
        List<BaseCalendar> justBaseCalendars = getIntegrationEntityDAO()
                .getBaseCalendars();
        return new BaseCalendarListDTO(toDTO(justBaseCalendars));
    }
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.