diff options
author | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2022-07-29 15:44:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-29 15:44:31 +0200 |
commit | 372f6d7371d42ef23b543d4349cfeabf25ac400b (patch) | |
tree | 9af9d03b14f4a3cf4747428071574ec668e3f3f7 /bundle-plugin/src/test/java/com/yahoo/container/plugin/util/TestBundleDependencyScopeTranslatorTest.java | |
parent | 5aa9bb607b7d4262c8ea13d20671f7264c3c59c5 (diff) | |
parent | 4b53d0d135fcacc5964b2720678642f182fd15d1 (diff) |
Merge pull request #23555 from vespa-engine/bjorncs/more-junit5v8.26.15
Bjorncs/more 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")); |