Reputation: 5142
During debugging the test code it hangs on the initialization phase. The latest message at the log is (before the debugging hangs):
2013-03-15 13:03:09:215 INFO [ : ] [main:o.h.d.Dialect] Using dialect: my.company.package.util.hibernate.HSQLDialect
Please consider the following factors which seems to impact the debugging:
@RunWith(SpringJUnit4ClassRunner.class)
What to do to debug the code?
Upvotes: 3
Views: 5111
Reputation: 912
Try to remove all breakpoints and restart your Debug. Press Command+Shift+F8, then Command+A and press Del. This if for Mac.
Upvotes: 2
Reputation: 12880
Make sure you did not place a breakpoint on method signature instead of line of regular code. You can recognize such breakpoint also by 4 black dots inside red circle. They slow down debugging dramatically.
Upvotes: 10
Reputation: 106390
It could easily be that you need to supply the test with more PermGen space.
Try using this in your configurations for that test:
-XX:MaxPermSize=300m
If your tests aren't insanely huge (and they shouldn't be), this should be more than enough.
Upvotes: 0