Testing and Code Quality in Java

Writing reliable Java: unit tests with JUnit 5, test doubles with Mockito, test-driven development, coverage, logging, refactoring and code review.

JAVA-220 Year 2 3 credits 12 lessons planned ▶ Video lessons coming soon

Offered by HSM University · Java Programming

Course content

  1. 1Why testing mattersComing
  2. 2Unit tests with JUnit 5Coming
  3. 3Assertions and parameterized testsComing
  4. 4Test fixtures and life cycleComing
  5. 5Mocking with MockitoComing
  6. 6Test-driven developmentComing
  7. 7Integration testsComing
  8. 8Code coverage with JaCoCoComing
  9. 9Logging with SLF4JComing
  10. 10Refactoring safelyComing
  11. 11Code review and continuous integrationComing
  12. 12Capstone: testing and refactoring a legacy moduleComing

Requirements

Recommended background. You can start any course at any time.

Description

Writing reliable Java: unit tests with JUnit 5, test doubles with Mockito, test-driven development, coverage, logging, refactoring and code review.

Part of the Information Technology stream, typically taken in year 2.