ant and junit5 – simulating sysproperty

Main menu:

Topics

Recent Posts

Feeds

RSS Feed RSS - Posts

July 2018
M T W T F S S
« Jun    
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

Past Posts

Java/Java EE

JDBC

Other

Archive for the tag "junit5"

ant and junit5 – simulating sysproperty

July 15th, 2018 by Jeanne Boyarsky

In JUnit 5, you use the junitlauncher Ant task rather than the junit Ant task. Unfortunately, this isn’t a drop in replacement. For example, junitlauncher doesn’t offer the option to fork and run the JUnit tests. As a result, it also doesn’t have the nested sysproperty tag so you can pass system properties. This is a […]

JUnit 5 – assertAll

February 25th, 2018 by Jeanne Boyarsky

I gave a half day JUnit 5 workshop at DevNexus last week. When I covered assertAll(), an interesting piece of code came up. In JUnit 5, there is an assertAll() which runs all of the assertions it contains so you can see all of them that failed at once.  This replaces the need for AssertJ’s SoftAssertions. […]

junit 5, gradle and containers

February 11th, 2018 by Jeanne Boyarsky

Up until recently, I’ve been using JUnit 5 with Eclipse and Maven. As I started using it with Gradle, I became frustrated that you couldn’t see the number of tests run when the tests succeeded. (Don’t worry; this is an easily solvable problem.) First JUnit 4 You can add code to have Groovy print the […]