diff options
Diffstat (limited to 'security-utils/src/test/java/com/yahoo/security/tls/HostGlobPatternTest.java')
-rw-r--r-- | security-utils/src/test/java/com/yahoo/security/tls/HostGlobPatternTest.java | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/security-utils/src/test/java/com/yahoo/security/tls/HostGlobPatternTest.java b/security-utils/src/test/java/com/yahoo/security/tls/HostGlobPatternTest.java index a5628a637f8..b63b1dfeaa0 100644 --- a/security-utils/src/test/java/com/yahoo/security/tls/HostGlobPatternTest.java +++ b/security-utils/src/test/java/com/yahoo/security/tls/HostGlobPatternTest.java @@ -1,10 +1,10 @@ // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.security.tls; -import org.junit.Test; +import org.junit.jupiter.api.Test; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertTrue; /** @@ -13,28 +13,28 @@ import static org.junit.Assert.assertTrue; public class HostGlobPatternTest { @Test - public void glob_without_wildcards_matches_entire_string() { + void glob_without_wildcards_matches_entire_string() { assertTrue(globMatches("foo", "foo")); assertFalse(globMatches("foo", "fooo")); assertFalse(globMatches("foo", "ffoo")); } @Test - public void wildcard_glob_can_match_prefix() { + void wildcard_glob_can_match_prefix() { assertTrue(globMatches("foo*", "foo")); assertTrue(globMatches("foo*", "foobar")); assertFalse(globMatches("foo*", "ffoo")); } @Test - public void wildcard_glob_can_match_suffix() { + void wildcard_glob_can_match_suffix() { assertTrue(globMatches("*foo", "foo")); assertTrue(globMatches("*foo", "ffoo")); assertFalse(globMatches("*foo", "fooo")); } @Test - public void wildcard_glob_can_match_substring() { + void wildcard_glob_can_match_substring() { assertTrue(globMatches("f*o", "fo")); assertTrue(globMatches("f*o", "foo")); assertTrue(globMatches("f*o", "ffoo")); @@ -42,7 +42,7 @@ public class HostGlobPatternTest { } @Test - public void wildcard_glob_does_not_cross_multiple_dot_delimiter_boundaries() { + void wildcard_glob_does_not_cross_multiple_dot_delimiter_boundaries() { assertTrue(globMatches("*.bar.baz", "foo.bar.baz")); assertTrue(globMatches("*.bar.baz", ".bar.baz")); assertFalse(globMatches("*.bar.baz", "zoid.foo.bar.baz")); @@ -51,7 +51,7 @@ public class HostGlobPatternTest { } @Test - public void single_char_glob_matches_non_dot_characters() { + void single_char_glob_matches_non_dot_characters() { assertTrue(globMatches("f?o", "foo")); assertFalse(globMatches("f?o", "fooo")); assertFalse(globMatches("f?o", "ffoo")); @@ -59,7 +59,7 @@ public class HostGlobPatternTest { } @Test - public void other_regex_meta_characters_are_matched_as_literal_characters() { + void other_regex_meta_characters_are_matched_as_literal_characters() { assertTrue(globMatches("<([{\\^-=$!|]})+.>", "<([{\\^-=$!|]})+.>")); } |