You need to create a Java JUnit testing project to test the newly created COBOL JVM wrapper project. The following is a list
of test cases that you might want to create:
- Test connection is open/closed.
- Create a record.
- Update the record.
- Create a second record.
- Delete the first record.
- Delete the second record.
- Verify the record content after steps 2 through 6.
You can use the project from the sample folder:
- In the COBOL Explorer, click
.
This opens the
Import dialog box.
- Click
.
- Click
Next.
- Click
Browse next to the
Select root directory field.
This opens the
Browse For Folder dialog box.
- Navigate to the
Eclipse\jvm_cobol\AddressBookDemo\addressBookWrapperTest folder in the samples directory installed with
Visual COBOL, which by default is
%PUBLIC%\Documents\Micro Focus\Visual COBOL\Samples.
- Click
OK.
- In the
Projects list, ensure that the
addressBookWrapperTest is checked.
- Check the
Copy projects into workspace.
- Click
Finish.
Note: You need to add the COBOL JVM Runtime System to the projects libraries to run the tests.