Package com.netflix.zeno.testpojos

Examples of com.netflix.zeno.testpojos.TypeB


    @Test
    public void serializeObjects() throws Exception {
        serializationState = new FastBlobStateEngine(serializersFactory);

        cache("TypeA", new TypeA(23523452, 2));
        cache("TypeB", new TypeB(3, "four"));

        serializeAndDeserializeSnapshot();

        final List<TypeA> typeAList = getAll("TypeA");
        final List<TypeB> typeBList = getAll("TypeB");
View Full Code Here


    @Test
    public void deserializeWithoutKnowingAboutSomeObjectTypes() throws Exception {
        serializationState = new FastBlobStateEngine(serializersFactory);

        cache("TypeA", new TypeA(23523452, 2));
        cache("TypeB", new TypeB(3, "four"));

        final byte data[] = serializeSnapshot();
        serializationState = new FastBlobStateEngine(serializersFactory);
        deserializeSnapshot(data);
View Full Code Here

    @Test
    public void serializeMultipleObjects() throws Exception {
        serializationState = new FastBlobStateEngine(serializersFactory);

        cache("TypeB", new TypeB(1, "two"));
        cache("TypeB", new TypeB(3, "four"));

        serializeAndDeserializeSnapshot();

        Assert.assertEquals(2, getAll("TypeB").size());
View Full Code Here

        serializationState = new FastBlobStateEngine(serializersFactory);

        cache("TypeC", new TypeC(
                typeAMap(),
                Arrays.asList(
                        new TypeB(3, "four"),
                        new TypeB(5, "six")
                        )
                ));

        serializeAndDeserializeSnapshot();
View Full Code Here

        List<TypeB> typeBs = new ArrayList<TypeB>();

        typeAMap.put("a12", new TypeA(1, 2));
        typeAMap.put("a34", new TypeA(3, 4));

        typeBs.add(new TypeB(5, "five"));
        typeBs.add(new TypeB(6, "six"));

        return new TypeC(typeAMap, typeBs);
    }
View Full Code Here

TOP

Related Classes of com.netflix.zeno.testpojos.TypeB

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.