JUnit
-
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 » -
Core Java
JUnit rules – executing additional verification when exceptions are thrown
In this post I will show you quickly how handy JUnit rules are if you need to solve the following challenge…
Read More » -
Core Java
JUnit vs TestNG: Which Testing Framework Should You Choose?
JUnit vs TestNG: The testing frameworks showdown Testing is an inseparable part of the software release cycle in well balanced…
Read More » -
Core Java
JUnit 5 – Dynamic Tests
When it came to defining tests, JUnit 4 had a tremendous weakness: It had to happen at compile time. Now,…
Read More » -
Core Java
JUnit 5 – Conditions
We recently learned about JUnit’s new extension model and how it allows us to inject customized behavior into the test…
Read More » -
Core Java
JUnit 5 – Extension Model
We already know quite a lot about the next version of Java’s most ubiquitous testing framework. Let’s now look at…
Read More »