Testing code is always one the most important part in the development process. Testing OpenOffice.org extensions cannot be often automated, but it would be interesting to know whether the tests are enough or not. Having some code coverage informations for the tests can be really useful.
This post explains how to measure the code coverage of a Java extension for OpenOffice.org. There are some traps in the path leading to the data and you should read the complete article to avoid them.