Home

 

Creating a JUnit test case

RAD v7.5 provides wizards to help you build JUnit test cases and test suites. The following step-by-step guide leads you through the example, so that you get familiar with the JUnit tooling within Application Developer:

Create a new package called itso.rad75.bank.test.junit in the RAD75JUnit project (under src).

Add the JUnit library to the Java project so that the classes from the JUnit framework can be resolved:

Right-click the RAD75JUnit project and select Properties, or press Alt+Enter.
Select Java Build Path and select the Libraries tab. Click Add Library.
In the Add Library dialog, select JUnit and click Next.
Select JUnit 4 in the JUnit library version field and click Finish.
Click OK to close the Properties dialog.
ibm.com/redbooks