DataNucleus can be easily tested using Eclipse.
Please refer to Building with Eclipse for
details of building the plugins.
This guide is currently incomplete - please volunteer updates to it for the benefit of others
Debugging DataNucleus unit tests might be very boring, but there is a way of reducing the pain
in Eclipse using the DataNucleus Eclipse Plugin. Follow the next steps to make this easier:
Install the DataNucleus Eclipse Plugin.
Add enhancement to the DataNucleus project.
Right Click on the project
>
DataNucleus
>
Enhance with DataNucleus 1.1
.
Setup the enhancement.
Right Click on the project
>
DataNucleus
>
Enhance setup
. If you are going to run the test in General or Datastore Scenario
use "jdo,jdod" as suffix for jdo files and for Application Scenario use "jdo,jdoa".
Run a JUNIT test in DEBUG mode, but first, you must setup some configuration to run the
tests
Don't forget to set the jdo file suffix for the Scenario you are going to run.