JUnit
-
Enterprise Java

JBoss Drools unit testing with junit-drools
Recently I’ve been working with a project heavily using JBoss Drools. I am not Drools expert – I am not…
Read More » -
Core Java

A JUnit Rule to Conditionally Ignore Tests
I always believed that using @Ignore to deactivate tests is a bad idea. Except, maybe as one way to put…
Read More » -
Core Java

3 ways of handling exceptions in JUnit. Which one to choose?
In JUnit there are 3 popular ways of handling exceptions in your test code: try-catch idiom With JUnit rule With…
Read More » -
Enterprise Java

Write effective Load Tests using JUnit and Repeat annotation
EasyTest recently introduced a new set of annotations that would help its users write effective test cases. The two main…
Read More » -
Enterprise Java

Run your Unit Tests in Parallel
It was about time when the developer of Unit Tests had the ability to run the tests in Parallel using…
Read More » -
Enterprise Java

Unit Testing Tip: Create Descriptive Tests
Your unit tests should be as descriptive as possible. The feedback they give you should be so clear you don’t…
Read More » -
Enterprise Java

JUnit and Mockito cooperation
This time I want to make an overview of testing framework Mockito. Definitely this is one of the most popular…
Read More » -
Enterprise Java

Fault Injection with Byteman and JUnit
The time when our applications lived in isolation have passed long-long ago. Nowadays applications are a very complicated beasts talking…
Read More » -
Enterprise Java

Running JUnit Tests Repeatedly Without Loops
Recently I came across a problem where I had to write tests for a method that calculates randomly distributed values…
Read More »


