Package com.cumulocity.me.rest.representation.inventory

Examples of com.cumulocity.me.rest.representation.inventory.ManagedObjectRepresentationBuilder


        representation.setSelf(SELF);
        return representation;
    }

    protected ManagedObjectRepresentationBuilder minimalManagedObjectBuilder() {
        return new ManagedObjectRepresentationBuilder().withID(getSampleGId()).withSelf(SELF);
    }
View Full Code Here


        assertThat(representation.getLastUpdated()).isEqualTo(lastUpdated);
    }

    @Test(expected = RepresentationValidationException.class)
    public void shouldRequireNullIdInCreateContext() throws Exception {
        ManagedObjectRepresentation representation = new ManagedObjectRepresentationBuilder().withID(getSampleGId()).build();

        isValid(representation, CREATE);
    }
View Full Code Here

        isValid(representation, CREATE);
    }
   
    @Test(expected = RepresentationValidationException.class)
    public void shouldRequireNullDateInCreateContext() throws Exception {
        ManagedObjectRepresentation representation = new ManagedObjectRepresentationBuilder().withLastUpdated(lastUpdated).build();

        isValid(representation, CREATE);
    }
View Full Code Here

        isValid(representation, CREATE);
    }
   
    @Test(expected = RepresentationValidationException.class)
    public void shouldRequireNullIdInUpdateContext() throws Exception {
        ManagedObjectRepresentation representation = new ManagedObjectRepresentationBuilder().withID(getSampleGId()).build();

        isValid(representation, UPDATE);
    }
View Full Code Here

        isValid(representation, UPDATE);
    }
   
    @Test(expected = RepresentationValidationException.class)
    public void shouldRequireNullDateInUpdateContext() throws Exception {
        ManagedObjectRepresentation representation = new ManagedObjectRepresentationBuilder().withLastUpdated(lastUpdated).build();

        isValid(representation, UPDATE);
    }
View Full Code Here

import com.cumulocity.me.rest.representation.inventory.ManagedObjectRepresentationBuilder;

public class RestRepresentationObjectBuilder {

    public static ManagedObjectRepresentationBuilder aManagedObjectRepresentation() {
        return new ManagedObjectRepresentationBuilder();
    }
View Full Code Here

TOP

Related Classes of com.cumulocity.me.rest.representation.inventory.ManagedObjectRepresentationBuilder

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.