labs / tiddlers / content / labs / lab03 / _Labs_03_Testing the 'View Students'

Using the StudentEditorTest as a guide, add code to the testView method in the StudentViewerTest class that tests that students in the DAO are being displayed in the dialog.

The students should appear when the dialog is opened, so there is no need to instruct the robot to click anything for this test --- you just need to verify that the students are there.

You will need to stub the getAll method in the mock in the setUp method so that it returns some student objects. This is similar to the stub for the getMajors method in the StudentEditorTest.

Refer to the reference section <> for information on how to check what is being displayed in a JList.