JUnit test support changed to use JMUnit library in Mobility Pack

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...
Comments:

Sony Ericsson has something simillar http://developer.sonyericsson.com/site/global/newsandevents/latestnews/newsjuly06/p_mobile_juint1.0_javame_cldc.jsp

Posted by Tom on August 30, 2006 at 01:27 PM CEST #

I know. We used the JMUnit because of legal proces too. It's opensourced...

Posted by Lukas on August 31, 2006 at 01:59 AM CEST #

Are all tests now generate in a separate test/... source-tree or is it still convoluted?

Iwan

Posted by Iwan Eising on August 31, 2006 at 05:03 AM CEST #

Unfortunatelly no, they are still mixed together with the tested classes.

Posted by Lukas on August 31, 2006 at 05:13 AM CEST #

Tom, unfortunately SE is not open source and I'm not sure if the license is compatible with NB license. JMUnit is covered by Apache license.

Posted by Martin on August 31, 2006 at 12:11 PM CEST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

This is the main channel to share news, tips and other stuff related to my work. Sometimes you can find even personal stuff. Enjoy your reading...

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today
news
Blogroll

No bookmarks in folder

OldNews
MyTrash
NavBar
NetBeans
LinksToBeExpanded