aboutsummaryrefslogtreecommitdiffstats
path: root/loadtime/src
diff options
context:
space:
mode:
authorAndy Clement <aclement@pivotal.io>2019-03-04 08:14:29 -0800
committerAndy Clement <aclement@pivotal.io>2019-03-04 08:14:29 -0800
commitfebe314b376fbfa093e2fa9b0cd6819c1a071dfd (patch)
treef3b9dab4df810f2eda1813b169ef0b190ed2020d /loadtime/src
parentf3623cc56e6b6bf03164e1b5cd03a31be5bacd47 (diff)
downloadaspectj-febe314b376fbfa093e2fa9b0cd6819c1a071dfd.tar.gz
aspectj-febe314b376fbfa093e2fa9b0cd6819c1a071dfd.zip
fixes for tests on windows
Diffstat (limited to 'loadtime/src')
-rw-r--r--loadtime/src/test/java/org/aspectj/weaver/loadtime/WeavingURLClassLoaderTest.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/loadtime/src/test/java/org/aspectj/weaver/loadtime/WeavingURLClassLoaderTest.java b/loadtime/src/test/java/org/aspectj/weaver/loadtime/WeavingURLClassLoaderTest.java
index 2af64a5f6..03b378ba2 100644
--- a/loadtime/src/test/java/org/aspectj/weaver/loadtime/WeavingURLClassLoaderTest.java
+++ b/loadtime/src/test/java/org/aspectj/weaver/loadtime/WeavingURLClassLoaderTest.java
@@ -15,6 +15,7 @@ package org.aspectj.weaver.loadtime;
import java.io.File;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
+import java.net.URISyntaxException;
import java.net.URL;
import java.util.Enumeration;
import java.util.Properties;
@@ -22,6 +23,7 @@ import java.util.Properties;
import junit.framework.TestCase;
import org.aspectj.bridge.AbortException;
+import org.aspectj.testing.util.TestUtil;
import org.aspectj.testing.util.TestUtil.TestError;
import org.aspectj.util.FileUtil;
import org.aspectj.weaver.tools.WeavingAdaptor;
@@ -348,8 +350,7 @@ public class WeavingURLClassLoaderTest extends TestCase {
* Aspects on ASPECTPATH but missing from CLASSPATH
*/
public void testIncompletePath() {
- URL aspectjrt = FileUtil.getFileURL(new File(ASPECTJRT));
- setSystemProperty(WeavingURLClassLoader.WEAVING_ASPECT_PATH, ADVICE_ASPECTS+File.pathSeparator+aspectjrt.toString());
+ setSystemProperty(WeavingURLClassLoader.WEAVING_ASPECT_PATH, ADVICE_ASPECTS+File.pathSeparator+new File(ASPECTJRT).toString());
setSystemProperty(WeavingURLClassLoader.WEAVING_CLASS_PATH, CLASSES_JAR);
WeavingURLClassLoader loader = new WeavingURLClassLoader(getClass().getClassLoader());