Package org.libreplan.importers.tim

Examples of org.libreplan.importers.tim.TimeRegistrationResponseDTO


                "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"),
                        timeRegistrationRequestDTO,
                        TimeRegistrationResponseDTO.class);
        if (timeRegistrationResponse == null) {
            fail("Time Registration Response is null");
        }
        assertTrue(!timeRegistrationResponse.getRefs().isEmpty());
    }
View Full Code Here


        timeRegistrationDTOs.add(timeRegistrationDTO2);

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

        TimeRegistrationResponseDTO timeRegistrationResponse = TimSoapClient
                .sendRequestReceiveResponse(properties.getProperty("url"),
                        properties.getProperty("username"),
                        properties.getProperty("password"),
                        timeRegistrationRequest,
                        TimeRegistrationResponseDTO.class);
        if (timeRegistrationResponse == null) {
            fail("Time Registration Response is null");
        }
        assertTrue(!timeRegistrationResponse.getRefs().isEmpty());
    }
View Full Code Here

        }

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

        TimeRegistrationResponseDTO timeRegistrationResponseDTO = TimSoapClient
                .sendRequestReceiveResponse(url, userName, password,
                        timeRegistrationRequestDTO, TimeRegistrationResponseDTO.class);

        if (timeRegistrationResponseDTO == null) {
            LOG.error("No response or exception in response");
            synchronizationInfo
                    .addFailedReason(_("No response or exception in response"));
            return;
        }

        if (isRefsListEmpty(timeRegistrationResponseDTO.getRefs())) {
            LOG.warn("Registration response with empty refs");
            synchronizationInfo
                    .addFailedReason(_("Registration response with empty refs"));
            return;
        }
View Full Code Here

TOP

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

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.