|
Wednesday August 30, 2006 |
|
JUnit test support changed to use JMUnit library in Mobility Pack
|
NetBeans
|
There was added JUnit tests support in Mobility Pack 5.5 Beta 2. The support used J2MEUnit library.
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...
|
|
( Aug 30 2006, 03:58:01 PM CEST )
Permalink
|
|
Trackback URL: http://blogs.sun.com/lukas/entry/junit_test_support_changed_to
|
Posted by Tom on August 30, 2006 at 08:27 PM CEST #
Posted by Lukas on August 31, 2006 at 08:59 AM CEST #
Iwan
Posted by Iwan Eising on August 31, 2006 at 12:03 PM CEST #
Posted by Lukas on August 31, 2006 at 12:13 PM CEST #
Posted by Martin on August 31, 2006 at 07:11 PM CEST #