Announcement Announcement Module
No announcement yet.
Spring Transactions With Junit Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring Transactions With Junit

    Hello All,

    I am having problem in running test case with Transaction..
    I have created a test case and in test case i have called method that insert some data and write Transactional annotation on that method..but on running test case it gives Exception while on running on server its works fine..
    Can any one suggest what should i need to solve this issue..


  • #2
    We create Junit to run the Dao classes which interact with Database quite often , those methods in dao instrument falsify the collection and pervert the collection in database after method subscription ,one way to abstain is to use the offence the transaction after the method execution .

    Infact the Elasticity's AbstractTransactionalSpringContextTests does reflexive rollback each second after the method enforcement there by reducing the pot shield encrypt to offence the dealing.

    Pontiac Power Steering Gear Box