Java Arena

Module 26

Troubleshooting and unit testing

Finding bugs step by step, and tests that check your code for you. Reading a stack trace through several classes, a checklist for troubleshooting, giving code that reads a Scanner its input from a String, unit tests with JUnit and its assertions, choosing good test cases, and test-driven development. The end of MOOC part 6.

Steps

  1. Bugs and troubleshooting step by step
  2. Test input for a Scanner
  3. Unit tests with JUnit
  4. More assertions and good tests
  5. Test-driven development
  6. Putting it all together