Home

 

Prepare the JUnit sample

We use the ITSO Bank application created in Developing the ITSO Bank application for the JUnit test working example.

Important: Use a new workspace for the JUnit example. If you work in your regular workspace, the Java builder will not function properly any more for projects with non-Java files in src/META-INF, such as projects with JPA. Refer to Cleaning the workspace for a circumvention.

The JUnit sample is based on the RAD75Java project. Import the RAD75Java project into the new workspace from:

c:\7672code\zInterchange\java\RAD75Java.zip 

Make a copy of RAD75Java with the name RAD75JUnit:

Right-click RAD75Java and select Copy.

Right-click in the Enterprise Explorer and select Paste. When prompted, type RAD75JUnit as the new name.

Verify that the project works by executing the BankClient class (right-click the class and select Run | s Æ Java Application).

The completed code for this section can also be imported from the c:\7672code\zInterchange\junit\RAD75JUnit.zip project interchange file.

ibm.com/redbooks