JUnit
-
Core Java
Common Mistakes Junior Developers Do When Writing Unit Tests
It’s been 10 years since I wrote my first unit test. Since then, I can’t remember how many thousands of…
Read More » -
Core Java
JUnit in a Nutshell: Unit Test Assertion
This chapter of JUnit in a Nutshell covers various unit test assertion techniques. It elaborates on the pros and cons…
Read More » -
Core Java
Some more unit test tips
In my previous post I showed some tips on unit testing JavaBeans. In this blog entry I will give two…
Read More » -
Core Java
JUnit Rules
Introduction In this post I would like to show an example of how to use JUnit Rule to make testing…
Read More » -
Core Java
JUnit in a Nutshell: Test Runners
The fourth chapter of my multi-part tutorial about JUnit testing essentials explains the purpose of the tool’s exchangable test runners…
Read More » -
Core Java
jUnit: Rules
Rules add special handling around tests, test cases or test suites. They can do additional validations common for all tests…
Read More » -
Core Java
JUnit in a Nutshell: Test Isolation
Working as a consultant I still meet quite often programmers, who have at most a vague understanding of JUnit and…
Read More » -
Core Java
Parameterized Test Runner in JUnit
We all have written unit tests where in a single test tests for different possible input-output combinations. Lets look how…
Read More » -
Core Java
This is Stuff: jUnit: Dynamic Tests Generation
Dynamic tests generation is useful when you need to run the same set of tests on many different input values…
Read More »