JUnit
-
Core Java
JUnit 5 – A First Look at the Next Generation of JUnit
In the beginning of February, the JUnit 5 (aka JUnit Lambda) team has published an alpha release. Since JUnit 4 is among…
Read More » -
Core Java
JUnit 5 – Setup
In November 2015 the JUnit Lambda team presented their prototype. Since then the project rebranded itself as JUnit 5 and…
Read More » -
Core Java
Use JUnit’s expected exceptions sparingly
Sometimes, when we get pull requests for jOOQ or our other libraries, people change the code in our unit tests…
Read More » -
Core Java
Introduction in Java TDD – part 1
Welcome to an introduction in Test Driven Development (TDD) series. We will talk about Java and JUnit in context of…
Read More » -
Core Java
Test Doubles: mocks, dummies and stubs
Most classes have collaborators. When unit testing, you usually want to avoid using real implementations of those collaborators to avoid test…
Read More » -
Enterprise Java
Clean Integration Testing with JUnit Rules
The benefits of JUnit Rules, especially when dealing with integration testing, can hardly be overrated. In this post, we’ll shine…
Read More » -
Enterprise Java
Parameterized integration tests with Spring JUnit Rules
Spring 4.2 comes with brand new JUnit rules: SpringClassRule and SpringMethodRule. The main advantage of using JUnit rules is to…
Read More » -
Core Java
Adding Database Logging to JUnit3
We have written many thousands of JUnit3 tests over the last decade and are now trying to consolidate the results…
Read More » -
Core Java
Using Junit Test Name
Name your tests When we create Junit test usually there is no practical use of the name of the method.…
Read More »