Package org.axonframework.serializer

Examples of org.axonframework.serializer.SerializedType


                new SimpleSerializedObject<T>(upcastObject, expectedRepresentationType(), expectedTypes.get(0)));
    }

    @Override
    public final List<SerializedType> upcast(SerializedType serializedType) {
        final SerializedType upcastType = doUpcast(serializedType);
        if (upcastType == null) {
            return Collections.emptyList();
        }
        return Collections.singletonList(upcastType);
    }
View Full Code Here


        assertEquals(0, actual.size());
    }

    @Test
    public void testUpcastSerializedObject() {
        final SerializedType upcastType = new SimpleSerializedType("newString", "2");
        AbstractSingleEntryUpcaster<String> testSubject = new StubUpcaster("did it", upcastType);

        List<SerializedObject<?>> actual = testSubject.upcast(
                new SimpleSerializedObject<String>("string", String.class, "string", "1"),
                Collections.singletonList(upcastType), null);
View Full Code Here

            return upcastObjects;
        }

        @Override
        public List<SerializedType> upcast(SerializedType serializedType) {
            SerializedType upcastType = new SimpleSerializedType(serializedType.getName(), newRevision);
            return Arrays.asList(upcastType, upcastType);
        }
View Full Code Here

        @Override
        public List<SerializedType> upcast(SerializedType serializedType,
                                           SerializedObject<String> intermediateRepresentation) {
            assertEquals("upcast object", intermediateRepresentation.getData());
            SerializedType upcastType = new SimpleSerializedType(serializedType.getName(), newRevision);
            return Arrays.asList(upcastType, upcastType);
        }
View Full Code Here

TOP

Related Classes of org.axonframework.serializer.SerializedType

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.