diff options
author | Tom Simmons <tomasimmons@gmail.com> | 2018-09-07 23:54:34 -0400 |
---|---|---|
committer | Tom Simmons <tomasimmons@gmail.com> | 2018-09-07 23:54:34 -0400 |
commit | 3d7498e19ce9eac4e09382bf09f7dbc9aff5c0ff (patch) | |
tree | efd19a0b2b6e6d9f19dc43f350c731c964ba2902 /src/test | |
parent | 4e04128da924cffc540f0ec00a27138d9a1fbf6e (diff) | |
download | java-language-server-3d7498e19ce9eac4e09382bf09f7dbc9aff5c0ff.zip |
Improve naming
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/org/javacs/UrlsTest.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/test/java/org/javacs/UrlsTest.java b/src/test/java/org/javacs/UrlsTest.java index fe2a4bf..0dc5224 100644 --- a/src/test/java/org/javacs/UrlsTest.java +++ b/src/test/java/org/javacs/UrlsTest.java @@ -13,31 +13,31 @@ import org.junit.Test; public class UrlsTest { @Test - public void of_whenPathStartsWithForwardSlash() throws Exception { - URL actual = Urls.of("/a/b/c"); + public void pathToUrl_whenPathStartsWithForwardSlash() throws Exception { + URL actual = Urls.pathToUrl("/a/b/c"); assertThat(actual.getProtocol(), equalTo("file")); assertThat(actual.getPath(), containsString("/a/b/c")); } @Test - public void of_whenPathStartsWithProtocol() throws Exception { - URL actual = Urls.of("file:///a/b/c"); + public void pathToUrl_whenPathStartsWithProtocol() throws Exception { + URL actual = Urls.pathToUrl("file:///a/b/c"); assertThat("file", equalTo(actual.getProtocol())); assertThat(actual.getPath(), containsString("/a/b/c")); } @Test - public void of_whenPathStartsWithDriveLetter_usingForwardSlashes() + public void pathToUrl_whenPathStartsWithDriveLetter_usingForwardSlashes() throws Exception { - URL actual = Urls.of("c:/a/b/c"); + URL actual = Urls.pathToUrl("c:/a/b/c"); assertThat(actual.getProtocol(), equalTo("file")); assertThat(actual.getPath(), containsString("/a/b/c")); } @Test - public void of_whenPathStartsWithDriveLetter_usingBackslashes() + public void pathToUrl_whenPathStartsWithDriveLetter_usingBackslashes() throws Exception { - URL actual = Urls.of("c:\\a\\b\\c"); + URL actual = Urls.pathToUrl("c:\\a\\b\\c"); assertThat(actual.getProtocol(), equalTo("file")); assertThat(actual.getPath(), containsString("/a/b/c")); } |