Examples of decorateForRead()


Examples of org.axonframework.eventsourcing.EventStreamDecorator.decorateForRead()

        final EventStreamDecorator mockDecorator = mock(EventStreamDecorator.class);
        when(mockDecorator.decorateForAppend(anyString(),
                                             any(EventSourcedAggregateRoot.class),
                                             any(DomainEventStream.class)))
                .thenAnswer(new ReturnsArgumentAt(2));
        when(mockDecorator.decorateForRead(anyString(), any(), any(DomainEventStream.class)))
                .thenAnswer(new ReturnsArgumentAt(2));

        stubHandler.setRepository(testSubject
                                          .createRepository(new GenericAggregateFactory<StubAggregate>(StubAggregate.class),
                                                            mockDecorator));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.