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/util/TestBundleDependencyScopeTranslatorTest.java | |
parent | 440801cf153e1bef5dea603f559e9288a40be16c (diff) |
Convert bundle-plugin to junit5
Diffstat (limited to 'bundle-plugin/src/test/java/com/yahoo/container/plugin/util/TestBundleDependencyScopeTranslatorTest.java')
-rw-r--r-- | bundle-plugin/src/test/java/com/yahoo/container/plugin/util/TestBundleDependencyScopeTranslatorTest.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/bundle-plugin/src/test/java/com/yahoo/container/plugin/util/TestBundleDependencyScopeTranslatorTest.java b/bundle-plugin/src/test/java/com/yahoo/container/plugin/util/TestBundleDependencyScopeTranslatorTest.java index ada2f8d208a..d20bbe0e073 100644 --- a/bundle-plugin/src/test/java/com/yahoo/container/plugin/util/TestBundleDependencyScopeTranslatorTest.java +++ b/bundle-plugin/src/test/java/com/yahoo/container/plugin/util/TestBundleDependencyScopeTranslatorTest.java @@ -5,7 +5,7 @@ package com.yahoo.container.plugin.util; import org.apache.maven.artifact.Artifact; import org.apache.maven.artifact.DefaultArtifact; import org.apache.maven.artifact.handler.DefaultArtifactHandler; -import org.junit.Test; +import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.List; @@ -14,7 +14,7 @@ import java.util.Set; import java.util.TreeMap; import java.util.TreeSet; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; /** * @author bjorncs @@ -24,7 +24,7 @@ public class TestBundleDependencyScopeTranslatorTest { private static final String GROUP_ID = "com.test"; @Test - public void test_dependencies_are_translated_to_compile_scope_by_default() { + void test_dependencies_are_translated_to_compile_scope_by_default() { Set<Artifact> artifacts = new TreeSet<>(); Artifact a = createArtifact(artifacts, "a", "test", List.of()); Artifact aa = createArtifact(artifacts, "a-a", "test", List.of("a")); @@ -40,7 +40,7 @@ public class TestBundleDependencyScopeTranslatorTest { } @Test - public void non_test_scope_dependencies_keep_original_scope() { + void non_test_scope_dependencies_keep_original_scope() { Set<Artifact> artifacts = new TreeSet<>(); Artifact a = createArtifact(artifacts, "a", "provided", List.of()); Artifact aa = createArtifact(artifacts, "a-a", "provided", List.of("a")); @@ -61,14 +61,14 @@ public class TestBundleDependencyScopeTranslatorTest { } @Test - public void ordering_in_config_string_determines_translation() { + void ordering_in_config_string_determines_translation() { Set<Artifact> artifacts = new TreeSet<>(); Artifact a = createArtifact(artifacts, "a", "test", List.of()); Artifact aa = createArtifact(artifacts, "a-a", "test", List.of("a")); { String configString = "com.test:a-a:runtime," + - "com.test:a:test,"; + "com.test:a:test,"; TestBundleDependencyScopeTranslator translator = TestBundleDependencyScopeTranslator.from(artifacts, configString); assertScope(translator, a, "test"); assertScope(translator, aa, "runtime"); @@ -76,7 +76,7 @@ public class TestBundleDependencyScopeTranslatorTest { { String configString = "com.test:a:test," + - "com.test:a-a:runtime"; + "com.test:a-a:runtime"; TestBundleDependencyScopeTranslator translator = TestBundleDependencyScopeTranslator.from(artifacts, configString); assertScope(translator, a, "test"); assertScope(translator, aa, "test"); @@ -84,7 +84,7 @@ public class TestBundleDependencyScopeTranslatorTest { } @Test - public void transitive_non_test_dependencies_of_test_dependencies_keep_original_scope() { + void transitive_non_test_dependencies_of_test_dependencies_keep_original_scope() { Set<Artifact> artifacts = new TreeSet<>(); Artifact a = createArtifact(artifacts, "a", "test", List.of()); Artifact aa = createArtifact(artifacts, "a-a", "test", List.of("a")); @@ -108,7 +108,7 @@ public class TestBundleDependencyScopeTranslatorTest { } @Test - public void different_classifiers_are_handled_separately() { + void different_classifiers_are_handled_separately() { Set<Artifact> artifacts = new TreeSet<>(); Artifact a = createArtifact(artifacts, "a", "test", List.of()); Artifact ab = createArtifact(artifacts, "a-b", "provided", List.of("a")); |