From 75392ff66c30d88fa173a2b38a94ab9f3ddaf39d Mon Sep 17 00:00:00 2001 From: Adam Domurad Date: Tue, 23 Apr 2013 13:55:23 -0400 Subject: Introduce more UrlUtils functions. --- .../netx/unit/net/sourceforge/jnlp/cache/ResourceTrackerTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/netx/unit/net/sourceforge') diff --git a/tests/netx/unit/net/sourceforge/jnlp/cache/ResourceTrackerTest.java b/tests/netx/unit/net/sourceforge/jnlp/cache/ResourceTrackerTest.java index 01c7b8f..29f372b 100644 --- a/tests/netx/unit/net/sourceforge/jnlp/cache/ResourceTrackerTest.java +++ b/tests/netx/unit/net/sourceforge/jnlp/cache/ResourceTrackerTest.java @@ -40,6 +40,9 @@ import java.io.UnsupportedEncodingException; import java.net.MalformedURLException; import java.net.URISyntaxException; import java.net.URL; + +import net.sourceforge.jnlp.util.UrlUtils; + import org.junit.Assert; import org.junit.Test; @@ -62,9 +65,6 @@ public class ResourceTrackerTest { } } - private static URL normalizeUrl(URL uRL) throws MalformedURLException, UnsupportedEncodingException, URISyntaxException { - return ResourceTracker.normalizeUrl(uRL, false); - } public static final int CHANGE_BORDER = 6; public static URL[] getUrls() throws MalformedURLException { @@ -92,7 +92,7 @@ public class ResourceTrackerTest { URL[] n = new URL[u.length]; for (int i = 0; i < n.length; i++) { - n[i] = normalizeUrl(u[i]); + n[i] = UrlUtils.normalizeUrl(u[i]); } return n; -- cgit v1.2.3