Things I wish I knew before I started writing unit tests


Methodologies & Tools

Date and time

Monday, 16. October 2023., 15:00


Hall D



How am I ever going to test this method? If you are like me, you probably asked yourself this question far too often. Because a method forces you to create an enormous test case, have lots of setup code, or worse, change production code to facilitate testing.So, what if we could write loosely coupled tests? What if our tests are clear, show intent and are fun to write? With Junit5 and Mockito you can write those tests. These tools offer many features that help you write tests but are rarely used. In this talk, I will demonstrate how to test an application with zero test coverage, hard-to-test production code, and lots of edge cases. Furthermore, I'll provide some practical advice to improve your tests and make them easier and more fun.

Lecture details

Level of difficulty: General
Desirable listeners function: Software Developer or Architect
Group of activity: Methodologies & Tools

About speaker


The conference is organized by the Croatian Association of Oracle users & Croatian Java Users Association. 

Like us on Facebook

We post news, photos and other interesting facts on official JavaCro Facebook Page.

Follow us on Twitter

Keep up to date with all the news on Twitter!

Platinasti Pokrovitelj

Zlatni pokrovitelj

Srebreni pokrovitelji

Medijski pokrovitelji