JUnit / newbie question
"Jason Thomas" <[email protected]>
| Newsgroups | gmane.comp.lang.nice.general |
|---|---|
| Message-ID | <[email protected]> |
To get JUnit to run tests written in Nice, I do the following:
// TestInterface.java
public interface TestInterface {
public void test();
}
// Test.nice
import junit.framework.*;
public class Test extends TestCase implements TestInterface {
test() {
assertTrue(true);
}
}
Is this the easiest way to run Nice unit tests with JUnit? It also
gives me a compile error saying that assertTrue is not declared
(assertTrue is a method in TestCase).
Thanks,
Jason
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click