JUnit
-
Core Java
Separating Integration Tests from Unit Tests Using Maven Failsafe & JUnit @Category
Why Unit Tests Should Run Separately From Integration Tests TDD at the Unit Testing level is fairly straight-forward, since classes in unit…
Read More » -
Core Java
Given When Then in Java
tl;dr you can use labels to clarify a given-when-then style of testing. What is given-when-then? given-when-then is a commonly used…
Read More » -
Core Java
Testing with files and directories in JUnit with @Rule
Testing with Files and directories in JUnit is easy thanks to TemporaryFolder @Rule. In JUnit rules (@Rule) can be used…
Read More » -
Core Java
Unit Testing exercise with FizzBuzz and JUnitParams
I sometimes use FizzBuzz to demonstrate the basics of unit testing to newbies. Although FizzBuzz is really simple problem, it…
Read More » -
Core Java
JUnit Tutorial for Unit Testing – The ULTIMATE Guide (PDF Download)
EDITORIAL NOTE: We have provided plenty of JUnit tutorials here at Java Code Geeks, like JUnit Getting Started Example, JUnit…
Read More » -
Core Java
Lightweight Integration Tests for Eclipse Extensions
Recently I introduced a little helper for Eclipse extension point evaluation. The auxiliary strives to reduce boilerplate code for common…
Read More » -
Core Java
Quo Vadis JUnit
For me JUnit is the most important library of the Java universe. But I think a new version of it…
Read More » -
Core Java
JUnit in a Nutshell: Yet Another JUnit Tutorial
Why Another JUnit Tutorial? JUnit seems to be the most popular testing tool for developers within the Java world. So…
Read More » -
Core Java
Tips for (unit testing) JavaBeans
If you’re writing Java code chances are you’re writing at least a few classes that adhere to the JavaBean conventions,…
Read More »