summaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorGeorge Fraser <george@fivetran.com>2018-12-24 10:27:41 -0800
committerGeorge Fraser <george@fivetran.com>2018-12-24 10:27:41 -0800
commit5f7975f84ab86350f9e1c0e4cf297a50a2ae0261 (patch)
tree716e0157b612acdebe47d322087deb0600b5e9c9 /src/test/java
parent61c8918f7d10b1c8fb9ec3a7fffe02aa708e5745 (diff)
downloadjava-language-server-5f7975f84ab86350f9e1c0e4cf297a50a2ae0261.zip
Unused
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/org/javacs/UrlsTest.java34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/test/java/org/javacs/UrlsTest.java b/src/test/java/org/javacs/UrlsTest.java
deleted file mode 100644
index d94d589..0000000
--- a/src/test/java/org/javacs/UrlsTest.java
+++ /dev/null
@@ -1,34 +0,0 @@
-package org.javacs;
-
-import static org.hamcrest.CoreMatchers.equalTo;
-import static org.junit.Assert.assertThat;
-
-import java.net.URL;
-import org.junit.Test;
-
-public class UrlsTest {
-
- @Test
- public void pathToUrl_whenPathStartsWithForwardSlash() throws Exception {
- URL actual = Urls.pathToUrl("/a/b/c");
- assertThat(actual.getProtocol(), equalTo("file"));
- }
-
- @Test
- public void pathToUrl_whenPathStartsWithProtocol() throws Exception {
- URL actual = Urls.pathToUrl("file:///a/b/c");
- assertThat(actual.getProtocol(), equalTo("file"));
- }
-
- @Test
- public void pathToUrl_whenPathStartsWithDriveLetter_usingForwardSlashes() throws Exception {
- URL actual = Urls.pathToUrl("c:/a/b/c");
- assertThat(actual.getProtocol(), equalTo("file"));
- }
-
- @Test
- public void pathToUrl_whenPathStartsWithDriveLetter_usingBackslashes() throws Exception {
- URL actual = Urls.pathToUrl("c:\\a\\b\\c");
- assertThat(actual.getProtocol(), equalTo("file"));
- }
-}