Interested in sponsoring the site? [find out more]
Jacoco Java Coverage Reporting - minimal configuration for Junit 4 and 5
Jacoco can be used for coverage reporting from maven for both JUnit 4 and JUnit 5
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.
Using Static Analysis to improve your Java Coding
I’m always looking for simple ways that I can improve my Java programming. And SpotBugs, CheckStyle and PMD can help me do that.
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 fix Java Language Level Issues
When using other people’s source code you might discover that you receive errors about java soure levels. These are easily fixed.
Which programming language should I learn?
TLDR; Getting started with programming is the hardest part. Installing the IDE, adding dependencies, writing your first test. Pick whichever language you have someone to help you with, or you have a tutorial to work through. Switching languages when you know one is not too hard so do not worry about being stuck with a language, focus on getting started.
How to download a file with RestAssured
TLDR; Downloading a file with RestAssured is as simple as taking the body of a request as a byte array and writing it to a file.
When automating I often have to download files. One very common FAQ for WebDriver is “How do I download a file with WebDriver?”.
How to convert SVN Subversion to Git on Windows
TLDR; Using Visual SVN, svnserve and local SVN repositories I was able to easily convert SVN to Git on Windows.
I hit every error possible when converting SVN to GIT. I eventually figured out the simplest way to avoid errors during the conversion process.