Package org.axonframework.unitofwork

Examples of org.axonframework.unitofwork.TransactionManager


        }
        rescheduleOnCorruptState = configuration.getRescheduleCommandsOnCorruptState();
        invokerInterceptors = new ArrayList<CommandHandlerInterceptor>(configuration.getInvokerInterceptors());
        publisherInterceptors = new ArrayList<CommandHandlerInterceptor>(configuration.getPublisherInterceptors());
        dispatchInterceptors = new ArrayList<CommandDispatchInterceptor>(configuration.getDispatchInterceptors());
        TransactionManager transactionManager = configuration.getTransactionManager();
        disruptor = new Disruptor<CommandHandlingEntry>(
                new CommandHandlingEntry.Factory(configuration.getTransactionManager() != null),
                configuration.getBufferSize(),
                executor,
                configuration.getProducerType(),
View Full Code Here


public class TransactionManagerFactoryBeanTest {

    @Test
    public void testInjectTransactionManager() throws Exception {
        TransactionManagerFactoryBean bean = new TransactionManagerFactoryBean();
        final TransactionManager transactionManager = mock(TransactionManager.class);
        bean.setTransactionManager(transactionManager);

        assertEquals(transactionManager, bean.getObject());
    }
View Full Code Here

    }

    @SuppressWarnings("unchecked")
    @Test
    public void testScheduleSnapshot_WithTransaction() {
        final TransactionManager txManager = mock(TransactionManager.class);
        testSubject.setTxManager(txManager);

        testScheduleSnapshot();

        InOrder inOrder = inOrder(mockEventStore, txManager);
View Full Code Here

    }

    @SuppressWarnings("unchecked")
    @Test
    public void testScheduleJob_TransactionalUnitOfWork() throws InterruptedException, SchedulerException {
        final TransactionManager transactionManager = mock(TransactionManager.class);
        testSubject.setTransactionManager(transactionManager);
        testSubject.initialize();
        final CountDownLatch latch = new CountDownLatch(1);
        doAnswer(new Answer() {
            @Override
View Full Code Here

TOP

Related Classes of org.axonframework.unitofwork.TransactionManager

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.