JUnit
-
Core Java

Lifecycle of JUnit 5 Extension Model
JUnit5 final release is around the corner (currently it is M4), and I have started playing with it a bit…
Read More » -
Core Java

Cleaner parameterized tests with JUnit 5
The general idea of parameterized unit tests is to run the same test method for different data. Creating parameterized tests…
Read More » -
Core Java

Testing exceptions with JUnit 5
JUnit 5 brought pretty awesome improvements and it differs a lot from its predecessor. JUnit 5 requires Java 8 at…
Read More » -
Core Java

JUnit 5 â Parameterized Tests
JUnit 5 is pretty impressive, particularly when you look under the covers, at the extension model and the architecture. But…
Read More » -
Core Java

Importance of given-when-then in unit tests and TDD
Recently, Iâve been writing rather about more advanced concepts related to automatic testing (mostly related to Spock). However, conducting my…
Read More » -
Core Java

Expected Exception Rule and Mocking Static Methods â JUnit
Today I was asked to consume a RESTful service so I started implementing it following Robert Cecil Martinâs rules for…
Read More » -
Core Java

Data driven testing with Junit & easytest
In this article we are going to see how can we make a Data Driven testing with Junit. For this…
Read More » -
Core Java

Using Kafka with Junit
One of the neat features that the excellent Spring Kafka project provides, apart from a easier to use abstraction over raw Kafka…
Read More » -
Enterprise Java

Create JNDI resources for JUnit testing using Spring
Until recently, I had static methods setting up my in memory database (HSQLDB). I called these methods in setUp/tearDown of…
Read More »
