X-Git-Url: https://juplo.de/gitweb/?p=scannotation;a=blobdiff_plain;f=src%2Ftest%2Fjava%2Forg%2Fscannotation%2Ftest%2FTestSmoke.java;h=8a9331d96e8c852f3c56ea8f59b09f0c99f05a5c;hp=8f914aa78819d7d03c98e190090dc629ae2a0437;hb=36e6637926203201648e7892ec6ee1240807218e;hpb=58b6663aae5313b41167d92851981ca549cbb461 diff --git a/src/test/java/org/scannotation/test/TestSmoke.java b/src/test/java/org/scannotation/test/TestSmoke.java index 8f914aa..8a9331d 100644 --- a/src/test/java/org/scannotation/test/TestSmoke.java +++ b/src/test/java/org/scannotation/test/TestSmoke.java @@ -4,7 +4,7 @@ import com.titan.domain.Address; import org.junit.Assert; import org.junit.Test; import org.scannotation.AnnotationDB; -import org.scannotation.classpath.ClasspathUrlFinder; +import org.scannotation.ClasspathUrlFinder; import java.io.IOException; import java.net.URL; @@ -41,6 +41,7 @@ public class TestSmoke if (System.getProperty("java.class.path").indexOf("titan-cruise-1.0.jar") == -1) { System.err.println("WARNING!!!!!!!! CANNOT TEST testFindClasspaths(): This is a Maven2 and Surefire problem in that it doesn't set java.class.path correctly. I run this test within the IDE"); + return; } URL[] urls = ClasspathUrlFinder.findClassPaths("titan-cruise-1.0.jar"); @@ -56,6 +57,7 @@ public class TestSmoke if (System.getProperty("java.class.path").indexOf("titan-cruise-1.0.jar") == -1) { System.err.println("WARNING!!!!!!! CANNOT TEST testFindClasspaths2(): This is a Maven2 and Surefire problem in that it doesn't set java.class.path correctly. I run this test within the IDE"); + return; } URL[] urls = ClasspathUrlFinder.findClassPaths();