From 358f73350d7331b386c78aef168091bdb8a0fc80 Mon Sep 17 00:00:00 2001 From: George Fraser Date: Fri, 21 Sep 2018 21:51:43 -0700 Subject: Run formatter --- src/test/java/org/javacs/UrlsTest.java | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'src/test') diff --git a/src/test/java/org/javacs/UrlsTest.java b/src/test/java/org/javacs/UrlsTest.java index 0e45db3..d94d589 100644 --- a/src/test/java/org/javacs/UrlsTest.java +++ b/src/test/java/org/javacs/UrlsTest.java @@ -1,6 +1,5 @@ package org.javacs; -import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.equalTo; import static org.junit.Assert.assertThat; @@ -8,29 +7,27 @@ 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 { + 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 { + public void pathToUrl_whenPathStartsWithDriveLetter_usingBackslashes() throws Exception { URL actual = Urls.pathToUrl("c:\\a\\b\\c"); assertThat(actual.getProtocol(), equalTo("file")); } -- cgit debian/1.2.3+git2.25.1-1-2-gaceb0