Enterprise Java Development@TOPIC@

Chapter 93. IT Testing with IDE

93.1. Run IT Tests Against Server
93.2. Debug Code Running on Server
93.3. Summary

  • Deploy artifacts using Maven command from either module parent or IT test module

  • Build from parent will re-build, deploy, and leave deployed the artifacts


  • Can select a specific test or package of tests


Make JUnit Tests IDE-friendly

Leverage reasonable hard-coded defaults and filtered resource files to make JUnit tests IDE friendly so that much of heavyweight Maven setup and teardown can be skipped when focusing on specific tests.


  • Not required when using embedded server (just use debug-as)

  • Standalone server must be restarted after making this edit




  • Debugger Client port must match what JBoss debugger listen port


  • You can optionally add modules now to resolve source code references


  • Execution will stop at server breakpoint

  • No sourcecode will show up if not yet in search path


  • Add as many projects as you wish

Note

You may have to stop and re-run your test for the source code path to take effect.


  • Notice we are seeing variables as well as line of execution