You, This Course and Us
  • You, This Course and Us
Getting Started with JUnit Tests and Assertions
  • Example 1 : The @Test Annotation : Writing a test
  • Example 2: The Anatomy of a Test Method
  • Example 3: Assertions
Granular Checks with Matchers
  • Example 4: assertThat and Matchers
  • Example 5: Types of Matchers
  • Example 6: Using Matchers for Debugging
  • Example 7: Implementing a Custom Matcher
Assumptions
  • Example 8: Checking Preconditions with Assumptions
Fixtures
  • Example 9: Using Fixtures for Setup and Cleanup
Working with Different TestRunners
  • Example 10: The @RunWith Annotation
  • Example 11: Aggregating tests in a Suite
  • Example 12: Parameterized Tests
  • Example 13: Running Subsets of Tests
  • Example 14: Theories
Controlling Test Behavior with Rules
  • Example 15: External Resource Rules
  • Example 16: The Temporary Folder Rule
  • Example 17: Error Collector Rule
  • Example 18: Verifier Rule
  • Example 19: Test Watcher Rule
  • Example 20: TestName Rule
  • Example 21: ExpectedException Rule
  • Example 22: Timeout Rule
  • Example 23: Class Rule
Mockito : The Mock Object Framework
  • Example 24: Creating Mock Objects and Verifying Interactions
  • Example 25: Stubbing Objects for Expected Results