© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
A. LilleaasPro Kotlin Web Apps from Scratchhttps://doi.org/10.1007/978-1-4842-9057-6_7

7. Automated Tests with jUnit 5

August Lilleaas1  
(1)
Oslo, Norway
 

You now have all the pieces of the web app puzzle assembled. But before you implement business logic on your own, you’ll learn how to write automated tests.

If you’re new to Kotlin, here are some language features that you’ll see examples of in this chapter:
  • Implementing test cases and assertions with kotlin.test

  • Null safety with the unsafe cast operator !!

  • Inline functions

Also in this chapter, you will learn the following about writing automated tests with jUnit 5:
  • The basics of Test-Driven Development (TDD) ...

Get Pro Kotlin Web Apps from Scratch: Building Production-Ready Web Apps Without a Framework now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.