diff options
author | Bjørn Christian Seime <bjorncs@yahooinc.com> | 2022-07-28 14:58:52 +0200 |
---|---|---|
committer | Bjørn Christian Seime <bjorncs@yahooinc.com> | 2022-07-28 14:58:52 +0200 |
commit | 147fa8c912c8748a9b4eb25c67420841363f3be0 (patch) | |
tree | be43054d6d5ec6ee4d01645678d0f411d3242d68 /jdisc_core/src/test/java/com/yahoo/jdisc/core/BundleLocationResolverTestCase.java | |
parent | 695209a356ecae42536fd394189a98cf5274518e (diff) |
Convert jdisc_core to junit5
Diffstat (limited to 'jdisc_core/src/test/java/com/yahoo/jdisc/core/BundleLocationResolverTestCase.java')
-rw-r--r-- | jdisc_core/src/test/java/com/yahoo/jdisc/core/BundleLocationResolverTestCase.java | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/jdisc_core/src/test/java/com/yahoo/jdisc/core/BundleLocationResolverTestCase.java b/jdisc_core/src/test/java/com/yahoo/jdisc/core/BundleLocationResolverTestCase.java index 86f7f5875a7..f65fb849836 100644 --- a/jdisc_core/src/test/java/com/yahoo/jdisc/core/BundleLocationResolverTestCase.java +++ b/jdisc_core/src/test/java/com/yahoo/jdisc/core/BundleLocationResolverTestCase.java @@ -1,12 +1,12 @@ // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.jdisc.core; -import org.junit.Test; +import org.junit.jupiter.api.Test; import java.io.File; import java.io.IOException; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; /** * @author Simon Thoresen Hult @@ -14,13 +14,13 @@ import static org.junit.Assert.assertEquals; public class BundleLocationResolverTestCase { @Test - public void requireThatDollarsAreIncludedInLocation() { + void requireThatDollarsAreIncludedInLocation() { assertLocation("scheme:$foo", "scheme:$foo"); assertLocation("scheme:foo$bar", "scheme:foo$bar"); } @Test - public void requireThatCurlyBracesAreIncludedInLocation() { + void requireThatCurlyBracesAreIncludedInLocation() { assertLocation("scheme:{foo", "scheme:{foo"); assertLocation("scheme:foo{", "scheme:foo{"); assertLocation("scheme:foo{bar", "scheme:foo{bar"); @@ -32,14 +32,14 @@ public class BundleLocationResolverTestCase { } @Test - public void requireThatUnterminatedPropertiesAreIncludedInLocation() { + void requireThatUnterminatedPropertiesAreIncludedInLocation() { assertLocation("scheme:${foo", "scheme:${foo"); assertLocation("scheme:foo${", "scheme:foo${"); assertLocation("scheme:foo${bar", "scheme:foo${bar"); } @Test - public void requireThatAllSystemPropertiesAreExpanded() throws IOException { + void requireThatAllSystemPropertiesAreExpanded() throws IOException { assertCanonicalPath("", "${foo}"); assertCanonicalPath("barcox", "${foo}bar${baz}cox"); assertCanonicalPath("foobaz", "foo${bar}baz${cox}"); @@ -50,18 +50,18 @@ public class BundleLocationResolverTestCase { System.setProperty("requireThatAllSystemPropertiesAreExpanded.cox", "COX"); assertCanonicalPath("FOO", "${requireThatAllSystemPropertiesAreExpanded.foo}"); assertCanonicalPath("FOObarBAZcox", "${requireThatAllSystemPropertiesAreExpanded.foo}bar" + - "${requireThatAllSystemPropertiesAreExpanded.baz}cox"); + "${requireThatAllSystemPropertiesAreExpanded.baz}cox"); assertCanonicalPath("fooBARbazCOX", "foo${requireThatAllSystemPropertiesAreExpanded.bar}" + - "baz${requireThatAllSystemPropertiesAreExpanded.cox}"); + "baz${requireThatAllSystemPropertiesAreExpanded.cox}"); } @Test - public void requireThatUnschemedLocationsAreExpandedToBundleLocationProperty() throws IOException { + void requireThatUnschemedLocationsAreExpandedToBundleLocationProperty() throws IOException { assertCanonicalPath(BundleLocationResolver.BUNDLE_PATH + "foo", "foo"); } @Test - public void requireThatFileSchemedLocationsAreCanonicalized() throws IOException { + void requireThatFileSchemedLocationsAreCanonicalized() throws IOException { assertCanonicalPath("", "file:"); assertCanonicalPath("foo", "file:foo"); assertCanonicalPath("foo", "file:./foo"); @@ -71,7 +71,7 @@ public class BundleLocationResolverTestCase { } @Test - public void requireThatOtherSchemedLocationsAreUntouched() { + void requireThatOtherSchemedLocationsAreUntouched() { assertLocation("foo:", "foo:"); assertLocation("foo:bar", "foo:bar"); assertLocation("foo:bar/baz", "foo:bar/baz"); |