X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.osgi.boot%2Fext%2Ftest%2Forg%2Fargeo%2Fosgi%2Fboot%2FOsgiBootNoRuntimeTest.java;h=6870a262977a03f3087b96cebccf519b0ae8504f;hb=ff7bbd1653479139bbca09ceb5d80718be027a33;hp=2a4d2195a2c022b18c1d1a6dd5d04ccb8a5d36a6;hpb=807ccba419e96a18f7af67a66f986ae4c91c03d9;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 2a4d2195a..6870a2629 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 @@ -1,27 +1,9 @@ -/* - * Copyright (C) 2007-2012 Argeo GmbH - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ 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 { @@ -29,25 +11,25 @@ public class OsgiBootNoRuntimeTest extends TestCase { + "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));