Package com.urbanairship.datacube.ops

Examples of com.urbanairship.datacube.ops.DoubleOp


public class OpTests {

    @Test
    public void testDoubleOp() {
        DoubleOp onePt2 = new DoubleOp(1.2);
        byte[] bytes = onePt2.serialize();
        DoubleOp.DoubleOpDeserializer deserializer = new DoubleOp.DoubleOpDeserializer();
        DoubleOp deserialized = deserializer.fromBytes(bytes);
        Assert.assertEquals(onePt2, deserialized);

        Op add = onePt2.add(deserialized);
        Assert.assertEquals(new DoubleOp(2.4), add);
    }
View Full Code Here

TOP

Related Classes of com.urbanairship.datacube.ops.DoubleOp

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.