JUnit
-
Core Java

A JUnit Rule to Run a Test in Its Own Thread
Occasionally it would be helpful to be able to run a JUnit test in a separate thread. In particular when…
Read More » -
Enterprise Java

An alternative approach of writing JUnit tests (the Jasmine way)
Recently I wrote a lot of Jasmine tests for a small personal project. It took me some time until I…
Read More » -
Core Java

JUnit: testing exception with Java 8 and Lambda Expressions
In JUnit there are many ways of testing exceptions in test code, including try-catch idiom, JUnit @Rule, with catch-exception library.…
Read More » -
Core Java

Writing Clean Tests – Divide and Conquer
A good unit test should fail for only one reason. This means that a proper unit test tests only one…
Read More » -
Enterprise Java

Writing Clean Tests – Replace Assertions with a Domain-Specific Language
It is pretty hard to figure out a good definition for clean code because everyone of us has our own…
Read More » -
Core Java

Writing Clean Tests – Beware of Magic
It is pretty hard to figure out a good definition for clean code because everyone of us has our own…
Read More » -
Core Java

Writing Clean Tests – It Starts from the Configuration
It is pretty hard to figure out a good definition for clean code because everyone of us has our own…
Read More » -
Core Java

Yet another way to handle exceptions in JUnit: catch-exception
There are many ways of handling exceptions in JUnit (3 ways of handling exceptions in JUnit. Which one to choose?,…
Read More » -
Core Java

JUnit ExpectedException rule: beyond basics
There are different ways of handling exceptions in JUnit tests. As I wrote in one of my previous posts, my…
Read More »

