Menu

#1 Make Assert methods static

open
nobody
5
2004-08-26
2004-08-26
No

By doing so, the J2MEUnit APIs will be closer to 100%
compatibility with the standard JUnit.

Why is this important?

Using the antena preprocessor, one is able to to make
builds using either J2MEUnit (when testing on small
devices) but also run them using the standard J2SE jUnit
(which allows using the whole pletora of jUnit tools
available out there).

The tools I needed to use in particular are the ant jUnit
plugin and the eclipse jUnit one. Until now I've only
tried the Eclipse plugin (which works well).

Here's how the preprocessor part looks like:
//#ifndef _CLDC_TARGET_
/*
//#endif
import j2meunit.framework.*;
//#ifndef _CLDC_TARGET_
*/
//#endif
//#ifndef _CLDC_TARGET_
import junit.framework.*;
//#endif

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.