Announcement Announcement Module
Collapse
No announcement yet.
TransactionalTestExecutionListener and REQUIRES_NEW with rollback Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • TransactionalTestExecutionListener and REQUIRES_NEW with rollback

    Hello,

    We would like our methods annotated with REQUIRES_NEW to rollback during test. How?

    our test class annotations:
    @RunWith(SpringJUnit4ClassRunner.class)
    @ContextConfiguration(locations = { "file1-applicationContext.xml", "/file2-applicationContext.xml" })
    @TestExecutionListeners( { TransactionalTestExecutionListener.class, DependencyInjectionTestExecutionListener.class,
    DirtiesContextTestExecutionListener.class })
    @TransactionConfiguration(transactionManager = "my_transactionManager")
    @Transactional
Working...
X