JUnit
-
Core Java
Parameterized JUnit tests with JUnitParams
Parameterized unit tests are used to to test the same code under different conditions. Thanks to parameterized unit tests we…
Read More » -
Core Java
Run, JUnit! Run!!!
JUnit together with JavaScript and SVN are some of the technologies that programmers often start using without even reading a…
Read More » -
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 »