You can run unit tests with Ant from the command line.
-
Open a command line window.
-
Go to the directory where you have generated the code.
-
Run the JUnit test task by issuing command: Ant junit
-
Check the output result in ejb3-persistence.log and testout directory.