• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Breakpoints not reachable if debugging @Transactional tests

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there,

I have the following problem:

I have a testsuite:


I have an implementation of the MyRepository interface (JdbcMyRepository) and this is configured in the app-test-context.xml:



If I put a breakpoint in the JdbcMyRepository, and start debugging the test1() method in MyTests, it does not break at the breakpoint! It looks like it could not come into the reflected class JdbcMyRepository through the interface MyRepository.

But... If I comment out @TransactionConfiguration(defaultRollback=false) and @Transactional in MyTests, then it works very well and I can debug my JdbcMyRepository (the debug is suspended at the breakpoint).

Can anybody explain that? Isn't it possible to debug if we use @Transactional?

Thanks in advance for your help!

Bart
 
Bartender
Posts: 1682
7
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Bart,

I have never had any issues with this. Try a project clean in eclipse. Also try to clear all your break points rebuild the project then try again. Another work around you can try is set the breakpoint in your test class and then step into to see if you can get in your repository implementation class. Once again I don't have this issue so I am not sure what the problem is.

Welcome to the Ranch!

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic