[jboss-user] [Beginner's Corner] - Re: getting started unit testing - embedded JBoss AS 7?

Ben Software Engineer do-not-reply at jboss.com
Thu Jan 24 09:13:55 EST 2013


Ben Software Engineer [https://community.jboss.org/people/ben.maisano] created the discussion

"Re: getting started unit testing - embedded JBoss AS 7?"

To view the discussion, visit: https://community.jboss.org/message/794062#794062

--------------------------------------------------------------
Hi,
   I'm using arquillian jboss managed setup, so I would expect it runs the tests in the server's jvm.  I cannot get a debug breakpoint to hit.  Details about debugging are here, but no answer yet on this thread:
 http://stackoverflow.com/questions/13082380/debugging-remote-container-with-arquillian-fails/14490537#14490537 http://stackoverflow.com/questions/13082380/debugging-remote-container-with-arquillian-fails/14490537#14490537

I would assume an embedded is just like normal junit, debug just works.  With managed or remote it seems they both involve another JVM that must be launched in debug mode and then you remotely attach to the debugging jvm with your IDE.  I'm not sure if how maven kicks it off is playing a role, but I cannot get it to work.  I have got jvm to hault, and I connect to it, however my breakpoints do not hit.  I have breakpoints in the junit/arquillian test class as well as within an ejb method the test class is calling.  Any ideas?
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/794062#794062]

Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130124/91282a86/attachment.html 


More information about the jboss-user mailing list