XpdWiki

FrontPage
RecentChanges
XtC
FindPage
PageIndex
XpApprentices

Set your name in
UserPreferences

Edit this page

Referenced by
VisualAge




JSPWiki v2.0.52


IntegrateJunitWithVisualAge



* Just import Junit and derive your own TestCase from that of Junit. Write a main method and invoke using run (or CTRL+E in VisualAge v3 ). The main looks something like this: public static void main (String args) { junit.textui.TestRunner.run (suite()); }

* Put Junit as a Tool, so you can invoke the test using right-click and select Tools...Junit. * Use the IBM VisualAge toolkit to write a helper template to create a TestCase derivative with all the right methods, such as main. There are several ways to add Junit to your development toolset. It is a matter of usability when it comes to invoking your tests that determines the best method:


* Just import Junit and derive your own TestCase from that of Junit. Write a main method and invoke using run (or CTRL+E in VisualAge v3 ). The main looks something like this: public static void main (String args) { junit.textui.TestRunner.run (suite()); }

* Put Junit as a Tool, so you can invoke the test using right-click and select Tools...Junit. * Use the IBM VisualAge toolkit to write a helper template to create a TestCase derivative with all the right methods, such as main.

  • This has already been completed by members of xpdeveloper and XtC and will be released in the next few days (its just been tested on a back port to VA20). Information on this tool can be found on JUnitCreator -- TimM

³³agent³Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)³IntegrateJunitWithVisualAge


Edit this page   More info...   Attach file...
This page last changed on 31-Jan-2000 21:40:15 GMT by unknown.