Package com.netflix.zeno.examples.pojos

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


        return a;
    }

    public A getExampleA2Prime() {
        B c3 = new B(3, "three");
        B c4 = new B(4, "four");
        B c6 = new B(6, "six");

        List<B> cList = new ArrayList<B>();
        cList.add(c3);
        cList.add(c4);
        cList.add(c6);
View Full Code Here


        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

        System.out.println(bJson);

    }

    public A getExampleA() {
        B b1 = new B(100, "one hundred");
        B b2 = new B(2000, "two thousand");

        List<B> bList = new ArrayList<B>();
        bList.add(b1);
        bList.add(b2);
View Full Code Here

    @Test
    public void determineSumOfValues() {
        IntSumFramework sumFramework = new IntSumFramework(new ExampleSerializerFactory());

        B b1 = new B(12, "Twelve!")/// sum = 12
        B b2 = new B(25, "Plus Twenty Five!")/// sum = 37
        B b3 = new B(10, "Plus Ten!")/// sum = 47

        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.
View Full Code Here

    @Override
    protected B doDeserialize(NFDeserializationRecord rec) {
        int bInt = deserializeInteger(rec, "bInt");
        String bString = deserializeObject(rec, "bString");

        return new B(bInt, bString);
    }
View Full Code Here

TOP

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

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.