Package org.libreplan.importers.tim

Examples of org.libreplan.importers.tim.TimeRegistrationRequestDTO


    public void testExportTimeRegistrationWith1Item() {
        List<TimeRegistrationDTO> timeRegistrations = new ArrayList<TimeRegistrationDTO>();
        TimeRegistrationDTO timeRegistration = createTimeRegistration(
                "Baten, Jeroen", "5160", new LocalDate().minusDays(1), 9.00);
        timeRegistrations.add(timeRegistration);
        TimeRegistrationRequestDTO timeRegistrationRequestDTO = new TimeRegistrationRequestDTO();
        timeRegistrationRequestDTO.setTimeRegistrations(timeRegistrations);

        TimeRegistrationResponseDTO timeRegistrationResponse = TimSoapClient
                .sendRequestReceiveResponse(properties.getProperty("url"),
                        properties.getProperty("username"),
                        properties.getProperty("password"),
View Full Code Here


        TimeRegistrationDTO timeRegistrationDTO2 = createTimeRegistration(
                "Baten, Jeroen", "5160", new LocalDate(), 9.00);
        timeRegistrationDTOs.add(timeRegistrationDTO2);

        TimeRegistrationRequestDTO timeRegistrationRequest = new TimeRegistrationRequestDTO();
        timeRegistrationRequest.setTimeRegistrations(timeRegistrationDTOs);

        TimeRegistrationResponseDTO timeRegistrationResponse = TimSoapClient
                .sendRequestReceiveResponse(properties.getProperty("url"),
                        properties.getProperty("username"),
                        properties.getProperty("password"),
View Full Code Here

            synchronizationInfo
                    .addFailedReason(_("Unable to crate time registration for request"));
            return;
        }

        TimeRegistrationRequestDTO timeRegistrationRequestDTO = new TimeRegistrationRequestDTO();
        timeRegistrationRequestDTO.setTimeRegistrations(timeRegistrationDTOs);

        TimeRegistrationResponseDTO timeRegistrationResponseDTO = TimSoapClient
                .sendRequestReceiveResponse(url, userName, password,
                        timeRegistrationRequestDTO, TimeRegistrationResponseDTO.class);
View Full Code Here

TOP

Related Classes of org.libreplan.importers.tim.TimeRegistrationRequestDTO

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.