Package com.cumulocity.model.operation

Examples of com.cumulocity.model.operation.OperationStatus


public class OperationFilterTest {
    @Test
    public void shouldHaveStatusAndDeviceAndAgent() throws Exception {
        // Given
        OperationStatus status = OperationStatus.EXECUTING;
        String deviceId = "deviceId";
        String agentId = "agentId";

        //When
        OperationFilter filter = new OperationFilter().byStatus(status).byDevice(deviceId).byAgent(agentId);

        //Then
        assertThat(filter.getStatus(), is(status.toString()));
        assertThat(filter.getDevice(), is(deviceId));
        assertThat(filter.getAgent(), is(agentId));
    }
View Full Code Here

TOP

Related Classes of com.cumulocity.model.operation.OperationStatus

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.