CSci 2101 Lab 9. June 14th.

Due Tuesday, June 15th at 11:59pm

20 points

The lab is done in pairs. If you are still working on quicksort, you should keep the same lab partners.

The goal of the lab is to introduce you to JUnit testing framework.

Task 1

Finish the counting sort. Use JUnit for testing or test it using the old methods. Make sure to test it thoroughly and submit all your testing code.

Task 2

Write JUnit tests and then a solution for the last review question (counting out of order pairs). Have at least three Test cases, more is better. Submit your testing code and your solution.

Finish quicksort

If you are still working on quicksort, continue working on it. You may use JUnit if you prefer, but you don't have to.

When you are done, you may start on extra credit.

Task 3 (extra credit, up to 10 points)

Pick any problem that you ahve already done (a class example, a problem set problem, a lab) and write and run JUnit tests for it. The best example would be one that has multiple public methods in the same class (the War game files, e.g. Player, fit perfectly). Extra extra credit for finding a mistake during testing that you weren't aware of before.

Submit the java file with all your testing code by e-mail to me. The subject of the message must be 2101 Lab 9. Make sure to CC your group partner.


CSci 2101 course web site.

The views and opinions expressed in this page are strictly those of the page author. The contents of this page have not been reviewed or approved by the University of Minnesota.