Lukas Hasik's notes about work life (and more)

XML

Subscribe to Lukas Hasik's Weblog on your cell phone Powered by Technorati

Let's have a ride
« November 2009
SunMonTueWedThuFriSat
1
2
4
5
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


Today's Page Hits: 1807

my.netbeans.org

News in pictures


the links



Recent Entries

Lukas Hasik's Weblog
All recent entries

Licence Info

This work is licensed under a Creative Commons License
LICENCE

Map of visitors

Locations of visitors to this page
Listed on BlogShares


20060830 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...


Comments [5] ( Aug 30 2006, 03:58:01 PM CEST ) Permalink del.icio.us furl simpy slashdot technorati digg

Trackback URL: http://blogs.sun.com/lukas/entry/junit_test_support_changed_to
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 08: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 08: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 12:03 PM CEST #

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

Posted by Lukas on August 31, 2006 at 12:13 PM 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 07:11 PM CEST #

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed


Disclaimer: The contents of my blog represent my personal opinions which may differ from official views of my employer, Sun Microsystems.