Session

Things i wish i knew before i started writing unit tests

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.

David Vlijmincx

Developer @ Team Rockstars

Eindhoven, The Netherlands

Actions

Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.

Jump to top