• Intro and course content
  • Setting up the development environment - Eclipse
Hard to test code
  • Examples of hard to test code
Mocking instance methods
  • Creating a class to be tested
  • Mocking instance methods without PowerMockito
  • Mocking instance methods using PowerMockito, introducing Maven features
Mocking static methods and partial mocking
  • Mocking static methods
  • Partial mocking using spy
Mocking private or scope variables
  • Mocking private variables
  • Mocking scope variables
Suppressing constructors or static blocks
  • Supressing constructors
  • Supressing static initializer blocks
  • Cook book