Package com.cumulocity.model.idtype

Examples of com.cumulocity.model.idtype.GId


        // Given
        when(response.getLocation()).thenReturn(
                new URI("http://integration.cumulocity.com/inventory/managedObjects/10200"));

        // When
        GId gid = parser.parseIdFromLocation(response);

        // Then
        assertThat(gid, is(new GId("10200")));
    }
View Full Code Here


public class FilterTest {

    @Test
    public void shouldCreateParamMap() throws Exception {
        AlarmFilter alarmFilter = new AlarmFilter().bySource(new GId("1")).byStatus(CumulocityAlarmStatuses.ACTIVE);
       
        Map<String, String> queryParams = alarmFilter.getQueryParams();
       
        assertThat(queryParams.keySet()).containsOnly("source","status");
    }
View Full Code Here

TOP

Related Classes of com.cumulocity.model.idtype.GId

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.