Package com.netflix.zeno.serializer

Examples of com.netflix.zeno.serializer.SerializerFactory


    }


    private SerializerFactory removedTypeBFactory() {
        return new SerializerFactory() {
            @Override
            public NFTypeSerializer<?>[] createSerializers() {
                return new NFTypeSerializer<?>[] {
                        new AState2Serializer()
                };
View Full Code Here


        };
    }


    private SerializerFactory state2Factory() {
        return new SerializerFactory() {
            @Override
            public NFTypeSerializer<?>[] createSerializers() {
                return new NFTypeSerializer<?>[] {
                        new AState2Serializer(),
                        new BSerializer()
View Full Code Here

            }
        };
    }

    private SerializerFactory state1Factory() {
        return new SerializerFactory() {
            @Override
            public NFTypeSerializer<?>[] createSerializers() {
                return new NFTypeSerializer<?>[] {
                        new AState1Serializer(),
                        new BSerializer()
View Full Code Here

    private FastBlobStateEngine stateEngine;
    private OrdinalRemapper ordinalRemapper;

    @Before
    public void setUp() {
        stateEngine = new FastBlobStateEngine(new SerializerFactory() {
            @Override
            public NFTypeSerializer<?>[] createSerializers() {
                return new NFTypeSerializer<?> [] {
                        new MapSerializer<TypeA, TypeA>(new TypeASerializer(), new TypeASerializer()),
                        new SetSerializer<TypeA>(new TypeASerializer()),
View Full Code Here

    @Test
    public void includesLegitimatelyNullElementsButNotUndefinedElementsInList() throws IOException {
        final ListSerializer<Integer> listSerializer = new ListSerializer<Integer>(new FakeIntSerializer());

        FastBlobStateEngine stateEngine = new FastBlobStateEngine(new SerializerFactory() {
            @Override
            public NFTypeSerializer<?>[] createSerializers() {
                return new NFTypeSerializer<?>[] {
                        listSerializer
                };
View Full Code Here

    }

    @Test
    public void includesLegitimatelyNullElementsButNotUndefinedElementsInSet() throws IOException {
        final SetSerializer<Integer> setSerializer = new SetSerializer<Integer>(new FakeIntSerializer());
        FastBlobStateEngine stateEngine = new FastBlobStateEngine(new SerializerFactory() {
            @Override
            public NFTypeSerializer<?>[] createSerializers() {
                return new NFTypeSerializer<?>[] {
                        setSerializer
                };
View Full Code Here

    @Test
    public void doesNotIncludeEntriesWithUndefinedKeysOrValuesInMap() throws IOException {
        final MapSerializer<Integer, Integer> mapSerializer =
                new MapSerializer<Integer, Integer>(new FakeIntSerializer(), new FakeIntSerializer());
        FastBlobStateEngine stateEngine = new FastBlobStateEngine(new SerializerFactory() {
            @Override
            public NFTypeSerializer<?>[] createSerializers() {
                return new NFTypeSerializer<?>[] {
                        mapSerializer
                };
View Full Code Here

TOP

Related Classes of com.netflix.zeno.serializer.SerializerFactory

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.