summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorTom Simmons <tomasimmons@gmail.com>2018-09-08 00:09:41 -0400
committerTom Simmons <tomasimmons@gmail.com>2018-09-08 00:09:41 -0400
commitd1220406759a9d59ccb8e13eabfe9297f777fb48 (patch)
treee0053835039c56bc33a770a917708f583ead9e08 /src/test
parentf42bdf907330c7c8f7b3dc8db5bea0fdc9247c6e (diff)
downloadjava-language-server-d1220406759a9d59ccb8e13eabfe9297f777fb48.zip
Fix indentation
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/org/javacs/UrlsTest.java60
1 files changed, 30 insertions, 30 deletions
diff --git a/src/test/java/org/javacs/UrlsTest.java b/src/test/java/org/javacs/UrlsTest.java
index 51df981..5e7f885 100644
--- a/src/test/java/org/javacs/UrlsTest.java
+++ b/src/test/java/org/javacs/UrlsTest.java
@@ -11,34 +11,34 @@ 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"));
- assertThat(actual.getPath(), containsString("/a/b/c"));
- }
-
- @Test
- 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 pathToUrl_whenPathStartsWithDriveLetter_usingForwardSlashes()
- throws Exception {
- URL actual = Urls.pathToUrl("c:/a/b/c");
- assertThat(actual.getProtocol(), equalTo("file"));
- assertThat(actual.getPath(), containsString("/a/b/c"));
- }
-
- @Test
- public void pathToUrl_whenPathStartsWithDriveLetter_usingBackslashes()
- throws Exception {
- URL actual = Urls.pathToUrl("c:\\a\\b\\c");
- assertThat(actual.getProtocol(), equalTo("file"));
- assertThat(actual.getPath(), containsString("/a/b/c"));
- }
+
+ @Test
+ 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 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 pathToUrl_whenPathStartsWithDriveLetter_usingForwardSlashes()
+ throws Exception {
+ URL actual = Urls.pathToUrl("c:/a/b/c");
+ assertThat(actual.getProtocol(), equalTo("file"));
+ assertThat(actual.getPath(), containsString("/a/b/c"));
+ }
+
+ @Test
+ public void pathToUrl_whenPathStartsWithDriveLetter_usingBackslashes()
+ throws Exception {
+ URL actual = Urls.pathToUrl("c:\\a\\b\\c");
+ assertThat(actual.getProtocol(), equalTo("file"));
+ assertThat(actual.getPath(), containsString("/a/b/c"));
+ }
}