JUnit
-
Core Java
JUnit in a Nutshell: Test Structure
Despite the existence of books and articles about JUnit testing, I still meet quite often programmers, who at most have…
Read More » -
Core Java
Clean JUnit Throwable-Tests with Java 8 Lambdas
Recently I was involved in a short online discussion on twitter and google+ which concerned the question why the arrival…
Read More » -
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 »