JUnit test support changed to use JMUnit library in Mobility Pack
By lukas on Aug 30, 2006
It happend that the library was changed to JMUnit library after the Beta 2. The main reasons was that it's newer and the code is maintained. It shouldn't influence end users too much. The J2MEUnit library is still bundled with Mobility Pack.
The only change is that test generated in builds after 5.5 Beta 2 will use the JMUnit TestCase syntax. The generated test skeletons are almost the same. There is different constructor, method that actually runs the tests (there isn't reflection in CLDC) and every method has to throw AssertionFailedException. You can compare the test skeletons generated in beta2 with test skeletons generated after beta2.
Compare the look
|Running tests on with J2MEUnit support|
|Running tests on with JMUnit support|
The UI is definitelly nicer. I miss availability to see the failed testcases on the device directly. The assertions and errors are printed to System.out by printStacktrace() but it won't help on real device.
I hope that there will be improvements in the JMUnit library in next releases...