diff options
author | Bjørn Christian Seime <bjorncs@yahooinc.com> | 2022-07-29 13:59:07 +0200 |
---|---|---|
committer | Bjørn Christian Seime <bjorncs@yahooinc.com> | 2022-07-29 13:59:07 +0200 |
commit | 7b050af44ac99581e237072d82f22966a802a873 (patch) | |
tree | ae4fa604eb88df442b6f9224092e438c66a4a71e /bundle-plugin/src/test/java/com/yahoo/container/plugin/mojo/GenerateSourcesMojoTest.java | |
parent | 440801cf153e1bef5dea603f559e9288a40be16c (diff) |
Convert bundle-plugin to junit5
Diffstat (limited to 'bundle-plugin/src/test/java/com/yahoo/container/plugin/mojo/GenerateSourcesMojoTest.java')
-rw-r--r-- | bundle-plugin/src/test/java/com/yahoo/container/plugin/mojo/GenerateSourcesMojoTest.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bundle-plugin/src/test/java/com/yahoo/container/plugin/mojo/GenerateSourcesMojoTest.java b/bundle-plugin/src/test/java/com/yahoo/container/plugin/mojo/GenerateSourcesMojoTest.java index 3b75d9dcb7d..4edc9c3712d 100644 --- a/bundle-plugin/src/test/java/com/yahoo/container/plugin/mojo/GenerateSourcesMojoTest.java +++ b/bundle-plugin/src/test/java/com/yahoo/container/plugin/mojo/GenerateSourcesMojoTest.java @@ -2,10 +2,10 @@ package com.yahoo.container.plugin.mojo; import org.apache.maven.plugin.MojoExecutionException; -import org.junit.Test; +import org.junit.jupiter.api.Test; -import static org.junit.Assert.assertEquals; -import static org.junit.Assume.assumeNotNull; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assumptions.assumeTrue; /** * @author Simon Thoresen Hult @@ -13,10 +13,10 @@ import static org.junit.Assume.assumeNotNull; public class GenerateSourcesMojoTest { @Test - public void requireThatDefaultConfigGenVersionIsLoadedFromBuildProperties() throws MojoExecutionException { + void requireThatDefaultConfigGenVersionIsLoadedFromBuildProperties() throws MojoExecutionException { String expected = System.getProperty("expectedDefaultConfigGenVersion"); System.out.println("expectedDefaultConfigGenVersion = " + expected); - assumeNotNull(expected); + assumeTrue(expected != null); String actual = GenerateSourcesMojo.loadDefaultConfigGenVersion(); System.out.println("defaultConfigGenVersion = " + actual); |