[jboss-osgi-commits] JBoss-OSGI SVN: r86976 - in projects/jboss-osgi/trunk: testsuite and 3 other directories.

jboss-osgi-commits at lists.jboss.org jboss-osgi-commits at lists.jboss.org
Wed Apr 8 13:24:49 EDT 2009


Author: thomas.diesler at jboss.com
Date: 2009-04-08 13:24:49 -0400 (Wed, 08 Apr 2009)
New Revision: 86976

Added:
   projects/jboss-osgi/trunk/testsuite/src/test/java/org/jboss/test/osgi/jbosgi39/OSGI39RemoteTestCase.java
   projects/jboss-osgi/trunk/testsuite/src/test/java/org/jboss/test/osgi/jbosgi41/OSGI41RemoteTestCase.java
   projects/jboss-osgi/trunk/testsuite/src/test/java/org/jboss/test/osgi/service/startlevel/StartLevelRemoteTestCase.java
Removed:
   projects/jboss-osgi/trunk/testsuite/src/test/java/org/jboss/test/osgi/jbosgi39/OSGI39DeployerTestCase.java
   projects/jboss-osgi/trunk/testsuite/src/test/java/org/jboss/test/osgi/jbosgi41/OSGI41DeployerTestCase.java
   projects/jboss-osgi/trunk/testsuite/src/test/java/org/jboss/test/osgi/service/startlevel/StartLevelDeployerTestCase.java
Modified:
   projects/jboss-osgi/trunk/runtime/felix/pom.xml
   projects/jboss-osgi/trunk/testsuite/pom.xml
Log:
Rename DeployerTest to RemoteTest

Modified: projects/jboss-osgi/trunk/runtime/felix/pom.xml
===================================================================
--- projects/jboss-osgi/trunk/runtime/felix/pom.xml	2009-04-08 17:21:20 UTC (rev 86975)
+++ projects/jboss-osgi/trunk/runtime/felix/pom.xml	2009-04-08 17:24:49 UTC (rev 86976)
@@ -195,7 +195,7 @@
               <excludes>
                 <!-- Exclude tests that require remote access -->
                 <exclude>org/jboss/test/osgi/deployer/**</exclude>
-                <exclude>org/jboss/test/osgi/**/*DeployerTestCase.java</exclude>
+                <exclude>org/jboss/test/osgi/**/*RemoteTestCase.java</exclude>
                 <exclude>org/jboss/test/osgi/service/http/junit/*TestCase.java</exclude>
                 <exclude>org/jboss/test/osgi/service/microcontainer/junit/*TestCase.java</exclude>
                 <!-- [JBOSGI-39] Bundle gets wired to an already uninstalled bundle -->

Modified: projects/jboss-osgi/trunk/testsuite/pom.xml
===================================================================
--- projects/jboss-osgi/trunk/testsuite/pom.xml	2009-04-08 17:21:20 UTC (rev 86975)
+++ projects/jboss-osgi/trunk/testsuite/pom.xml	2009-04-08 17:24:49 UTC (rev 86976)
@@ -190,7 +190,7 @@
               <excludes>
                 <!-- Exclude tests that require remote access -->
                 <exclude>org/jboss/test/osgi/deployer/**</exclude>
-                <exclude>org/jboss/test/osgi/**/*DeployerTestCase.java</exclude>
+                <exclude>org/jboss/test/osgi/**/*RemoteTestCase.java</exclude>
                 <exclude>org/jboss/test/osgi/service/http/junit/*TestCase.java</exclude>
                 <exclude>org/jboss/test/osgi/service/microcontainer/junit/*TestCase.java</exclude>
                 <!-- [JBOSGI-39] Bundle gets wired to an already uninstalled bundle -->

Deleted: projects/jboss-osgi/trunk/testsuite/src/test/java/org/jboss/test/osgi/jbosgi39/OSGI39DeployerTestCase.java
===================================================================
--- projects/jboss-osgi/trunk/testsuite/src/test/java/org/jboss/test/osgi/jbosgi39/OSGI39DeployerTestCase.java	2009-04-08 17:21:20 UTC (rev 86975)
+++ projects/jboss-osgi/trunk/testsuite/src/test/java/org/jboss/test/osgi/jbosgi39/OSGI39DeployerTestCase.java	2009-04-08 17:24:49 UTC (rev 86976)
@@ -1,69 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.test.osgi.jbosgi39;
-
-//$Id$
-
-import org.jboss.osgi.spi.framework.RemoteBundle;
-import org.jboss.osgi.spi.junit.IntegrationTest;
-import org.osgi.framework.Bundle;
-
-/**
- * [JBOSGI-39] Bundle undeploy does not clean up properly
- * 
- * https://jira.jboss.org/jira/browse/JBOSGI-39
- * 
- * Bundle B depends on bundle X.
- * 
- * B ---> X 
- * 
- * @author thomas.diesler at jboss.com
- * @since 04-Mar-2009
- */
-public class OSGI39DeployerTestCase extends IntegrationTest
-{
-   public void testFirstRun() throws Exception
-   {
-      installBBeforeX();
-   }
-
-   public void testSecondRun() throws Exception
-   {
-      installBBeforeX();
-   }
-
-   private void installBBeforeX() throws Exception
-   {
-      RemoteBundle bundleB = deployBundle("jbosgi38-bundleB");
-      
-      assertEquals("Bundle installed", Bundle.INSTALLED, bundleB.getState());
-      
-      RemoteBundle bundleX = deployBundle("jbosgi38-bundleX");
-      
-      assertEquals("Bundle active", Bundle.ACTIVE, bundleX.getState());
-      assertEquals("Bundle active", Bundle.ACTIVE, bundleB.getState());
-      
-      // Undeploy X before B
-      undeployBundle("jbosgi38-bundleX");
-      undeployBundle("jbosgi38-bundleB");
-   }
-}
\ No newline at end of file

Copied: projects/jboss-osgi/trunk/testsuite/src/test/java/org/jboss/test/osgi/jbosgi39/OSGI39RemoteTestCase.java (from rev 86975, projects/jboss-osgi/trunk/testsuite/src/test/java/org/jboss/test/osgi/jbosgi39/OSGI39DeployerTestCase.java)
===================================================================
--- projects/jboss-osgi/trunk/testsuite/src/test/java/org/jboss/test/osgi/jbosgi39/OSGI39RemoteTestCase.java	                        (rev 0)
+++ projects/jboss-osgi/trunk/testsuite/src/test/java/org/jboss/test/osgi/jbosgi39/OSGI39RemoteTestCase.java	2009-04-08 17:24:49 UTC (rev 86976)
@@ -0,0 +1,69 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.osgi.jbosgi39;
+
+//$Id$
+
+import org.jboss.osgi.spi.framework.RemoteBundle;
+import org.jboss.osgi.spi.junit.IntegrationTest;
+import org.osgi.framework.Bundle;
+
+/**
+ * [JBOSGI-39] Bundle undeploy does not clean up properly
+ * 
+ * https://jira.jboss.org/jira/browse/JBOSGI-39
+ * 
+ * Bundle B depends on bundle X.
+ * 
+ * B ---> X 
+ * 
+ * @author thomas.diesler at jboss.com
+ * @since 04-Mar-2009
+ */
+public class OSGI39RemoteTestCase extends IntegrationTest
+{
+   public void testFirstRun() throws Exception
+   {
+      installBBeforeX();
+   }
+
+   public void testSecondRun() throws Exception
+   {
+      installBBeforeX();
+   }
+
+   private void installBBeforeX() throws Exception
+   {
+      RemoteBundle bundleB = deployBundle("jbosgi38-bundleB");
+      
+      assertEquals("Bundle installed", Bundle.INSTALLED, bundleB.getState());
+      
+      RemoteBundle bundleX = deployBundle("jbosgi38-bundleX");
+      
+      assertEquals("Bundle active", Bundle.ACTIVE, bundleX.getState());
+      assertEquals("Bundle active", Bundle.ACTIVE, bundleB.getState());
+      
+      // Undeploy X before B
+      undeployBundle("jbosgi38-bundleX");
+      undeployBundle("jbosgi38-bundleB");
+   }
+}
\ No newline at end of file


Property changes on: projects/jboss-osgi/trunk/testsuite/src/test/java/org/jboss/test/osgi/jbosgi39/OSGI39RemoteTestCase.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:mergeinfo
   + 
Name: svn:eol-style
   + LF

Deleted: projects/jboss-osgi/trunk/testsuite/src/test/java/org/jboss/test/osgi/jbosgi41/OSGI41DeployerTestCase.java
===================================================================
--- projects/jboss-osgi/trunk/testsuite/src/test/java/org/jboss/test/osgi/jbosgi41/OSGI41DeployerTestCase.java	2009-04-08 17:21:20 UTC (rev 86975)
+++ projects/jboss-osgi/trunk/testsuite/src/test/java/org/jboss/test/osgi/jbosgi41/OSGI41DeployerTestCase.java	2009-04-08 17:24:49 UTC (rev 86976)
@@ -1,67 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.test.osgi.jbosgi41;
-
-//$Id$
-
-import java.io.BufferedReader;
-import java.io.File;
-import java.io.FileReader;
-
-import org.jboss.osgi.spi.framework.RemoteBundle;
-import org.jboss.osgi.spi.junit.IntegrationTest;
-import org.osgi.framework.Bundle;
-
-/**
- * [JBOSGI-41] Verify persistent file storage
- * 
- * https://jira.jboss.org/jira/browse/JBOSGI-41
- * 
- * @author thomas.diesler at jboss.com
- * @since 05-Mar-2009
- */
-public class OSGI41DeployerTestCase extends IntegrationTest
-{
-   public void testFirstRun() throws Exception
-   {
-      RemoteBundle bundleA = deployBundle("jbosgi41-bundleA");
-      assertEquals("Bundle active", Bundle.ACTIVE, bundleA.getState());
-      
-      File dataFile = getBundleDataFile(bundleA, "config/jbosgi41.txt");
-      assertTrue("File exists: " + dataFile, dataFile.exists());
-      
-      BufferedReader br = new BufferedReader(new FileReader(dataFile));
-      String symbolicName = br.readLine();
-      assertEquals("jbosgi41-bundleA", symbolicName);
-      
-      undeployBundle("jbosgi41-bundleA");
-   }
-
-   private File getBundleDataFile(RemoteBundle bundleA, String filename)
-   {
-      String storageRoot = bundleA.getProperty("org.osgi.framework.storage");
-      assertNotNull("Storage dir not null", storageRoot);
-      
-      File dataFile = new File(storageRoot + "/bundle" + bundleA.getBundleId() + "/data/" + filename);
-      return dataFile;
-   }
-}
\ No newline at end of file

Copied: projects/jboss-osgi/trunk/testsuite/src/test/java/org/jboss/test/osgi/jbosgi41/OSGI41RemoteTestCase.java (from rev 86975, projects/jboss-osgi/trunk/testsuite/src/test/java/org/jboss/test/osgi/jbosgi41/OSGI41DeployerTestCase.java)
===================================================================
--- projects/jboss-osgi/trunk/testsuite/src/test/java/org/jboss/test/osgi/jbosgi41/OSGI41RemoteTestCase.java	                        (rev 0)
+++ projects/jboss-osgi/trunk/testsuite/src/test/java/org/jboss/test/osgi/jbosgi41/OSGI41RemoteTestCase.java	2009-04-08 17:24:49 UTC (rev 86976)
@@ -0,0 +1,67 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.osgi.jbosgi41;
+
+//$Id$
+
+import java.io.BufferedReader;
+import java.io.File;
+import java.io.FileReader;
+
+import org.jboss.osgi.spi.framework.RemoteBundle;
+import org.jboss.osgi.spi.junit.IntegrationTest;
+import org.osgi.framework.Bundle;
+
+/**
+ * [JBOSGI-41] Verify persistent file storage
+ * 
+ * https://jira.jboss.org/jira/browse/JBOSGI-41
+ * 
+ * @author thomas.diesler at jboss.com
+ * @since 05-Mar-2009
+ */
+public class OSGI41RemoteTestCase extends IntegrationTest
+{
+   public void testFirstRun() throws Exception
+   {
+      RemoteBundle bundleA = deployBundle("jbosgi41-bundleA");
+      assertEquals("Bundle active", Bundle.ACTIVE, bundleA.getState());
+      
+      File dataFile = getBundleDataFile(bundleA, "config/jbosgi41.txt");
+      assertTrue("File exists: " + dataFile, dataFile.exists());
+      
+      BufferedReader br = new BufferedReader(new FileReader(dataFile));
+      String symbolicName = br.readLine();
+      assertEquals("jbosgi41-bundleA", symbolicName);
+      
+      undeployBundle("jbosgi41-bundleA");
+   }
+
+   private File getBundleDataFile(RemoteBundle bundleA, String filename)
+   {
+      String storageRoot = bundleA.getProperty("org.osgi.framework.storage");
+      assertNotNull("Storage dir not null", storageRoot);
+      
+      File dataFile = new File(storageRoot + "/bundle" + bundleA.getBundleId() + "/data/" + filename);
+      return dataFile;
+   }
+}
\ No newline at end of file


Property changes on: projects/jboss-osgi/trunk/testsuite/src/test/java/org/jboss/test/osgi/jbosgi41/OSGI41RemoteTestCase.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:mergeinfo
   + 
Name: svn:eol-style
   + LF

Deleted: projects/jboss-osgi/trunk/testsuite/src/test/java/org/jboss/test/osgi/service/startlevel/StartLevelDeployerTestCase.java
===================================================================
--- projects/jboss-osgi/trunk/testsuite/src/test/java/org/jboss/test/osgi/service/startlevel/StartLevelDeployerTestCase.java	2009-04-08 17:21:20 UTC (rev 86975)
+++ projects/jboss-osgi/trunk/testsuite/src/test/java/org/jboss/test/osgi/service/startlevel/StartLevelDeployerTestCase.java	2009-04-08 17:24:49 UTC (rev 86976)
@@ -1,46 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.test.osgi.service.startlevel;
-
-//$Id$
-
-import org.jboss.osgi.spi.framework.RemoteBundle;
-import org.jboss.osgi.spi.junit.IntegrationTest;
-import org.osgi.framework.Bundle;
-
-/**
- * Deploy a bundle that accesses the StartLevel service
- * 
- * @author thomas.diesler at jboss.com
- * @since 04-Mar-2009
- */
-public class StartLevelDeployerTestCase extends IntegrationTest
-{
-   public void testStartLevel() throws Exception
-   {
-      RemoteBundle bundle = deployBundle("startlevel-service");
-      
-      assertEquals("Bundle active", Bundle.ACTIVE, bundle.getState());
-      
-      undeployBundle("startlevel-service");
-   }
-}
\ No newline at end of file

Copied: projects/jboss-osgi/trunk/testsuite/src/test/java/org/jboss/test/osgi/service/startlevel/StartLevelRemoteTestCase.java (from rev 86975, projects/jboss-osgi/trunk/testsuite/src/test/java/org/jboss/test/osgi/service/startlevel/StartLevelDeployerTestCase.java)
===================================================================
--- projects/jboss-osgi/trunk/testsuite/src/test/java/org/jboss/test/osgi/service/startlevel/StartLevelRemoteTestCase.java	                        (rev 0)
+++ projects/jboss-osgi/trunk/testsuite/src/test/java/org/jboss/test/osgi/service/startlevel/StartLevelRemoteTestCase.java	2009-04-08 17:24:49 UTC (rev 86976)
@@ -0,0 +1,46 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.osgi.service.startlevel;
+
+//$Id$
+
+import org.jboss.osgi.spi.framework.RemoteBundle;
+import org.jboss.osgi.spi.junit.IntegrationTest;
+import org.osgi.framework.Bundle;
+
+/**
+ * Deploy a bundle that accesses the StartLevel service
+ * 
+ * @author thomas.diesler at jboss.com
+ * @since 04-Mar-2009
+ */
+public class StartLevelRemoteTestCase extends IntegrationTest
+{
+   public void testStartLevel() throws Exception
+   {
+      RemoteBundle bundle = deployBundle("startlevel-service");
+      
+      assertEquals("Bundle active", Bundle.ACTIVE, bundle.getState());
+      
+      undeployBundle("startlevel-service");
+   }
+}
\ No newline at end of file


Property changes on: projects/jboss-osgi/trunk/testsuite/src/test/java/org/jboss/test/osgi/service/startlevel/StartLevelRemoteTestCase.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:mergeinfo
   + 
Name: svn:eol-style
   + LF




More information about the jboss-osgi-commits mailing list