JUnit
-
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 » -
Core Java

JUnit: Testing Exceptions with Java 8 and AssertJ 3.0.0
AssertJ 3.0.0 release for Java 8 makes testing exceptions much easier than before. In one of my previous blog post…
Read More » -
Enterprise Java

Automated testing of REST-services
Despite I’m a Java and Scala developer I still passioned a lot in testing of software. If to be more…
Read More »

