up previous next contents index
Next: Exercise 3 Up: Working Backwards with JUnit Previous: Exercise 1   Contents   Index

Exercise 2

  1. Create a Pizza class and a test class for it.
  2. Create methods to get the list of toppings from a pizza.
  3. Create a means of adding toppings to a pizza.
  4. Create a way to remove a topping from a pizza.
  5. Create a way to determine the price of a pizza.


up previous next contents index
Next: Exercise 3 Up: Working Backwards with JUnit Previous: Exercise 1   Contents   Index