Class MockTransactionManager

  • All Implemented Interfaces:
    org.springframework.transaction.PlatformTransactionManager

    public class MockTransactionManager
    extends Object
    implements org.springframework.transaction.PlatformTransactionManager
    • Constructor Detail

      • MockTransactionManager

        public MockTransactionManager()
    • Method Detail

      • getTransaction

        public org.springframework.transaction.TransactionStatus getTransaction​(org.springframework.transaction.TransactionDefinition definition)
                                                                         throws org.springframework.transaction.TransactionException
        Specified by:
        getTransaction in interface org.springframework.transaction.PlatformTransactionManager
        Throws:
        org.springframework.transaction.TransactionException
      • commit

        public void commit​(org.springframework.transaction.TransactionStatus status)
                    throws org.springframework.transaction.TransactionException
        Specified by:
        commit in interface org.springframework.transaction.PlatformTransactionManager
        Throws:
        org.springframework.transaction.TransactionException
      • rollback

        public void rollback​(org.springframework.transaction.TransactionStatus status)
                      throws org.springframework.transaction.TransactionException
        Specified by:
        rollback in interface org.springframework.transaction.PlatformTransactionManager
        Throws:
        org.springframework.transaction.TransactionException