From d1220406759a9d59ccb8e13eabfe9297f777fb48 Mon Sep 17 00:00:00 2001 From: Tom Simmons Date: Sat, 8 Sep 2018 00:09:41 -0400 Subject: Fix indentation --- src/test/java/org/javacs/UrlsTest.java | 60 +++++++++++++++++----------------- 1 file changed, 30 insertions(+), 30 deletions(-) (limited to 'src/test') 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")); + } } -- cgit v1.2.3