Package com.cumulocity.model.event

Examples of com.cumulocity.model.event.CumulocityAlarmStatuses


    }

    @Test
    public void shouldGetCollectionByFilterStatus() throws Exception {
        // Given
        CumulocityAlarmStatuses status = CumulocityAlarmStatuses.ACKNOWLEDGED;
        AlarmFilter alarmFilter = new AlarmFilter().byStatus(status);
        String alarmsByStatusUrl = ALARM_COLLECTION_URL + "?status=" + CumulocityAlarmStatuses.ACKNOWLEDGED.toString();
        when(urlProcessor.replaceOrAddQueryParam(ALARM_COLLECTION_URL, alarmFilter.getQueryParams())).thenReturn(alarmsByStatusUrl);
        AlarmCollectionImpl expected = new AlarmCollectionImpl(restConnector, alarmsByStatusUrl, DEFAULT_PAGE_SIZE);
View Full Code Here


    private AlarmFilter alarmFilter = new AlarmFilter();

    @Test
    public void shouldHoldStatusAndSource() {
        // given
        CumulocityAlarmStatuses status = CumulocityAlarmStatuses.ACKNOWLEDGED;

        // when
        AlarmFilter filter = alarmFilter.bySource(new GId("1")).byStatus(status);

        // then
        assertThat(filter.getSource(), is("1"));
        assertThat(filter.getStatus(), is(status.toString()));
    }
View Full Code Here

TOP

Related Classes of com.cumulocity.model.event.CumulocityAlarmStatuses

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.