Package com.netflix.zeno.examples.pojos

Examples of com.netflix.zeno.examples.pojos.A


        cList.add(c4);
        cList.add(c6);

        C d = new C(Long.MAX_VALUE, new byte[] { 10, 9, 8, 7, 6 });

        A a = new A(cList, d, 2);

        return a;
    }
View Full Code Here


        String json = jsonFramework.serializeAsJson("A", getExampleA());

        System.out.println("JSON FOR A:");
        System.out.println(json);

        A deserializedA = jsonFramework.deserializeJson("A", json);

        String bJson = jsonFramework.serializeAsJson("B", new B(50, "fifty"));

        System.out.println("JSON FOR B:");
        System.out.println(bJson);
View Full Code Here

        bList.add(b1);
        bList.add(b2);

        C c = new C(Long.MAX_VALUE, new byte[] { 1, 2, 3, 4, 5 });

        A a = new A(bList, c, 1);

        return a;
    }
View Full Code Here

        List<B> bList = Arrays.asList(b1, b2, b3);

        C c = new C(20, new byte[] { 100, 101, 102 })/// longs don't count.  Still sum = 47.

        A a = new A(bList, c, 100); /// sum = 147

        int actualSum = sumFramework.getSum("A", a);

        Assert.assertEquals(147, actualSum);
    }
View Full Code Here

    protected A doDeserialize(NFDeserializationRecord rec) {
        List<B> bList = deserializeObject(rec, "blist");
        C c = deserializeObject(rec, "c");
        int intValue = deserializeInteger(rec, "intVal");

        return new A(bList, c, intValue);
    }
View Full Code Here

TOP

Related Classes of com.netflix.zeno.examples.pojos.A

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.