X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.osgi.boot%2Fext%2Ftest%2Forg%2Fargeo%2Fosgi%2Fboot%2FOsgiBootNoRuntimeTest.java;h=c667f918e5aad8e8c8a1ea0cc99fc4cbb2ca8d84;hb=86e5f79860a8b3013b40a36c1f06c828d52f5249;hp=638b13a6d94b882689f0bee895034e4ee7def215;hpb=aa238ddb6873a19ecf92f68ad717b209da705e35;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.osgi.boot/ext/test/org/argeo/osgi/boot/OsgiBootNoRuntimeTest.java b/org.argeo.osgi.boot/ext/test/org/argeo/osgi/boot/OsgiBootNoRuntimeTest.java index 638b13a6d..c667f918e 100644 --- a/org.argeo.osgi.boot/ext/test/org/argeo/osgi/boot/OsgiBootNoRuntimeTest.java +++ b/org.argeo.osgi.boot/ext/test/org/argeo/osgi/boot/OsgiBootNoRuntimeTest.java @@ -15,38 +15,36 @@ */ package org.argeo.osgi.boot; -import java.io.File; import java.util.List; import junit.framework.TestCase; -import org.argeo.osgi.boot.OsgiBoot; - /** Tests which do not require a runtime. */ +@SuppressWarnings("rawtypes") public class OsgiBootNoRuntimeTest extends TestCase { public final static String BUNDLES = "src/test/bundles/some;in=*;ex=excluded," + "src/test/bundles/others;in=**/org.argeo.*"; /** Tests that location lists are properly parsed. */ - public void testLocations() { - String baseUrl = "file:"; - String locations = "/mydir/myfile" + File.pathSeparator - + "/myotherdir/myotherfile"; - - OsgiBoot osgiBoot = new OsgiBoot(null); - osgiBoot.setExcludeSvn(true); - List urls = osgiBoot.getLocationsUrls(baseUrl, locations); - assertEquals(2, urls.size()); - assertEquals("file:/mydir/myfile", urls.get(0)); - assertEquals("file:/myotherdir/myotherfile", urls.get(1)); - } + // public void testLocations() { + // String baseUrl = "file:"; + // String locations = "/mydir/myfile" + File.pathSeparator + // + "/myotherdir/myotherfile"; + // + // OsgiBoot osgiBoot = new OsgiBoot(null); + // osgiBoot.setExcludeSvn(true); + // List urls = osgiBoot.getLocationsUrls(baseUrl, locations); + // assertEquals(2, urls.size()); + // assertEquals("file:/mydir/myfile", urls.get(0)); + // assertEquals("file:/myotherdir/myotherfile", urls.get(1)); + // } /** Tests that bundle lists are properly parsed. */ public void testBundles() { String baseUrl = "file:"; String bundles = BUNDLES; OsgiBoot osgiBoot = new OsgiBoot(null); - osgiBoot.setExcludeSvn(true); +// osgiBoot.setExcludeSvn(true); List urls = osgiBoot.getBundlesUrls(baseUrl, bundles); for (int i = 0; i < urls.size(); i++) System.out.println(urls.get(i));