Package com.cumulocity.sdk.client.devicecontrol

Examples of com.cumulocity.sdk.client.devicecontrol.PagedOperationCollectionRepresentation


    }

    @Test
    public void test() throws Exception {
        //GIVEN
        PagedOperationCollectionRepresentation repr = mock(PagedOperationCollectionRepresentation.class);
        List<OperationRepresentation> opList = new LinkedList<OperationRepresentation>();

        when(operationCollection.get()).thenReturn(repr);
        when(repr.getOperations()).thenReturn(opList);

        //WHEN
        testObj.run();

        //THEN
View Full Code Here


    @Override
    public void run() {
        try {
            // polls for new operationRep representations and queue them
            PagedOperationCollectionRepresentation collectionReps = operationCollection.get();
            queue.addAll(collectionReps.getOperations());
        } catch (Exception e) {
            logger.error("Problem polling for operations", e);
        }
    }
View Full Code Here

TOP

Related Classes of com.cumulocity.sdk.client.devicecontrol.PagedOperationCollectionRepresentation

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.