Importing Source Code into the COBOL JVM Unit Test Project

You now need to import the COBOL program that contains the test cases. To import the TestRecordsProgram.cbl program into the AddressBookJVMTest project's source folder:

  1. In the COBOL Explorer view, expand the AddressBookJVMTest project.
  2. Right-click the src folder, and then click Import > Import.

    This opens the Import dialog box.

  3. Click General > File System.
  4. Click Next.
  5. Click Browse next to the From directory field.

    This opens the Import from directory dialog box.

  6. Navigate to the Eclipse\jvm_cobol\AddressBookDemo\addressBookJVMTest\src folder in the samples directory installed with Visual COBOL, which by default is $COBDIR/demo.
  7. Click OK.
  8. In the left pane, check the src folder.
  9. Click Finish.

    Expand src > (default package) to display the TestRecordsProgram.cbl program.

Note: The project should build automatically. If not, click Project > Build Automatically.