You might stumble over complex Ant based projects now and then, and you won’t have nothing but complex macros and run tasks to start the application. In other words: you require detecting skills to create a debugable Eclipse project.
But there’s a cool and simple way to collect vm arguments, options and paths: use VisualVM to connect to the running application and copy the runtime settings:
- invoke the Ant run task or macro to start the application
- start VisualVM and connect to the app
- copy the runtime settings
- stop the app
- create a new Eclipse project, if you don’t already have one
- create a new debug launch config and apply the recovered settings from step 2.
- run the launch config, and refine as required
That’s it 
Tags:
HtmlUnit, the HeadLess Java browser, has been just been released. The list of bug fixes is quite impressive.
If you need unit tests for your webapp, then you should definitively give HtmlUnit a closer look. It is pretty simple to use and easy to integrate in existing Ant and Maven build processes. HtmlUnits system requirements might be somewhat on the heavy side, but you get a pretty good tool with an impressive feature list.
HtmlUnit supports the following JavaScript libraries:
- jQuery 1.2.6: Full support
- MochiKit 1.4.1: Full support
- GWT 1.6.4: Full support
- Sarissa 0.9.9.3: Full support
- MooTools 1.2.1: Full support
- Prototype 1.6.0: Very good support
- Ext JS 2.2: Very good support
- Dojo 1.0.2: Good support
- YUI 2.3.0: Good support
I am using it extensively with YUI 2.7.0 and ExtJs 2.2. IMHO it’s one of the best free web application GUI testing tools out there.
(via TheServerSide.com)
Tags: