Data Driven Tests in JUnit 4 with Parameterized Tests
JUnit 4 supports parameterizing a Test class to run the test methods in the class with multiple data values.
Basic Differences Between JUnit 4 and Junit 5
There are many differences between JUnit 4 and 5, in terms of JUnit 5 having more capabilities and different ways of doing stuff.
But there are some very obvious differences between 4 and 5 in terms of: ignoring tests, running methods before and after methods and test classes, and exception asserting.
Generating JUnit HTML Reports
To generate JUnit HTML reports from maven builds we need to add the surefire plugin to generate the xml files and then the site and reporting plugins to create the html report.
Using Both JUnit 4 and Junit 5
I prefer to use either JUnit 4 or JUnit 5, but there may be moments when we want to use both. We can do that with JUnit 5 dependencies.
How to learn Java with Exploratory Programming
TLDR: Learn Java by taking advantage of code completion and JavaDoc in the IDE to explore classes with JUnit Tests
I my book Java For Testers I encourage the reader to experiment when learning Java by writing small JUnit tests to explore classes. I’m going to expand on that concept in this blog post and the associated video.
Is JUnit only for unit testing? What about system testing or UAT?
TLDR; We can use JUnit to execute code to support any type of testing.
How to debug Java with IntelliJ: breakpoints, evaluate expression, watches and variable view
I have deliberately created a failing test. Obviously deliberately since I would never ever create such simple issues in code.
Does dependency between test execution imply lack of abstraction layers?
TLDR; I try to write tests at an appropriate semantic level so I never need to create dependencies between @Test methods, I re-use abstraction calls instead of dependencies between @Test methods.


