Package c8y

Examples of c8y.AccelerationMeasurement


    private AccelerationMeasurement measurement;
   
    @Before
    public void setUp() throws Exception {
      measurement = new AccelerationMeasurement();
        measurement.setAccelerationValue(new BigDecimal(10));
    }
View Full Code Here


    }

    @Test
    public final void shouldSerializeAndDeserializeCorrectly() {
        String serialized = JSON.defaultJSON().forValue(measurement);
        AccelerationMeasurement newMeasurement = JSONParser.defaultJSONParser().parse(AccelerationMeasurement.class, serialized);
        assertEquals(measurement.getAccelerationValue(), newMeasurement.getAccelerationValue());
    }
View Full Code Here

TOP

Related Classes of c8y.AccelerationMeasurement

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.