Testing & Wrap UpHomepage  « Case Study « Testing & Wrap Up

In the final section of the Case Study we do some testing and wrap up the loose ends. We start by writing a program to test various methods of the StockImpl class which will also test the Manufacturer class in the process. We will write out methods called to a log file and view the logged results, thus also testing that our logging is working as intended. After this we write a test program to validate our locking is functioning correctly. For the view code we do some visual checks to ensure the GUI is working correctly. This will include starting up the Manufacturer application in non-networked client, server and networked client modes as well as checking that the visual presentation of the manufacturer data file is displayed correctly using our custom table model. In our final test for the case study we do some visual checks to ensure the controller code is working and end-to-end testing to show that the disparate parts of our system work together. We have been using javadoc comments throughout the code we have written and we finish the section by creating the javadoc documentation for the packages we have coded. We then wrap all our files up neatly in a jar file so we can easily distribute them and to also reiterate usage of the jar command.

Model Testing

In our first lesson of the section we write a program to test various methods of the StockImpl class which will also test the Manufacturer class in the process. We will write out methods called to a log file and view the logged results, thus also testing that our logging is working as intended. After this we write a test program to validate our locking is functioning correctly.

View Testing

In this lesson we do some visual checks to ensure the GUI is working correctly. This will include starting up the Manufacturer application in non-networked client, server and networked client modes. We will also check the visual presentation of the manufacturer data file is displayed correctly using our custom table model.

Controller Testing

In this lesson we do some visual checks to ensure the controller code is working and end-to-end testing to show that the disparate parts of our system function together correctly.

Javadocs & Jar File

In our final lesson of the case study we create documentation for the case study by running the javadoc tool on the packages we have coded. This will extract the HTML style comments we have written in the source files and produce a top level folder and sub-folders for the packages. We then wrap all our files up neatly in a jar file so we can easily distribute them and to also show usage of the jar command.

go to home page Homepage go to home page Top

All the Testing & Wrap Up lessons are listed below. Click a link to go to that lesson.


Testing & Wrap Up

Model Testing

View Testing

Controller Testing

Javadocs & Jar File