Writing Assertions

After we have finished all lessons of this topic, we:

  • Know how we can write assertions by using the Standard JUnit 4 API, Hamcrest, and AssertJ.
  • Understand why we should not write assertions by using the Standard JUnit 4 API.
  • Can transform our assertions into a domain-specific language.