Package com.cumulocity.me.rest.representation.event

Examples of com.cumulocity.me.rest.representation.event.EventRepresentation


    }

    @Given("I have a Event with time '([^']*)' with type '([^']*)' and for '(\\d+)' managed object$")
    public void iHaveAEventWithTypeAndTime(String time, String type, int index) throws ClassNotFoundException, InstantiationException,
            IllegalAccessException {
        EventRepresentation rep = new EventRepresentation();
        rep.setType(type);
        rep.setText(" Event of Managed Object : ");
        rep.setTime(DateConverter.string2Date(time));
        System.out.println("Time = " + DateConverter.date2String(rep.getTime()));
        rep.setSource(managedObject);
        input.add(rep);
    }
View Full Code Here


    @When("I create all Events$")
    public void iCreateAll() throws SDKException {
        try {
            Iterator iterator = input.iterator();
            while (iterator.hasNext()) {
                EventRepresentation resultt = eventApi.create((EventRepresentation) iterator.next());
                result.add(resultt);
            }
        } catch (SDKException ex) {
            status = ex.getHttpStatus();
        }
View Full Code Here

TOP

Related Classes of com.cumulocity.me.rest.representation.event.EventRepresentation

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.