Getting started with automated tests
  • Why should we test software?
  • Our first unit test
  • Tests, tests, tests!
  • Eclipse shortcuts
  • A real (and sad) story
  • Time to practice!
  • Getting started with unit tests
Taking care of the test code
  • Eliminating repeated code
  • One assert per test?
  • Test names
  • Testing a more complicated class
  • Should I test private methods?
  • Test Data Builders
  • Time to practice!
  • Good practices
Test-Driven Development
  • The TDD cycle
  • Baby steps
  • Am I productive?
  • Time to practice!
  • Test-Driven Development
Mock Objects
  • Getting started with mocks
  • The Date/Time example
  • Time to practice!
  • Mock Objects
Last Thoughts
  • Summing up
  • What else?