Handling exceptions in tests: Junit & Kotest
![](https://androidpro.io/wp-content/uploads/2023/09/kristaps-grundsteins-_Vm8XWJ9UaQ-unsplash_o-1-1024x683.jpg)
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 […]