Handling exceptions in tests: Junit & Kotest

Exceptions and throwables are essential part of many Java APIs. They are useful for modeling application domain layer and controlling program execution flow. We’ll be working on following piece of code: Annotated Junit4 method Not perfect – the whole test method listens for `CustomException` to be thrown anywhere in method – and with junit4 tools … Continue reading Handling exceptions in tests: Junit & Kotest