CS351L - Fall 2011

Large Program Design Lab


John Donahue

Email: jdonahue@unm.edu

Turning in work: use the turnin script

Office: FEC 126

Office Hours:

Monday 2-3pm

Wednesday 1 - 2pm


Unit Testing

August 22nd, 2011

Background

Unit testing is important for writing maintainable code. Here you will be writing unit tests to test a roulette simulator.

Specifications

  • Read the Roulette Unit Test Primer.
  • Download the Roulette Simulator.
  • Resources

    JUnit Cookbook is a good start to finding out more about how to setup JUnit tests

    Grading

    For full credit, write a unit test that completely covers the splitBet() method.

    Don't stop at just completing the assignment!

    Keep reading as much as you can about unit testing. Try wikipedia or other outside resources. A world of resources is at your fingertips, use it!