Commit in servicemix/base/src/test/java/org/servicemix/jbi/installation on MAIN
ComponentAssemblyInstallationTest.java+22-201.1 -> 1.2
Fixed for indefinite loop that is occuring when this case is executed.

servicemix/base/src/test/java/org/servicemix/jbi/installation
ComponentAssemblyInstallationTest.java 1.1 -> 1.2
diff -u -r1.1 -r1.2
--- ComponentAssemblyInstallationTest.java	11 Aug 2005 01:39:41 -0000	1.1
+++ ComponentAssemblyInstallationTest.java	16 Aug 2005 08:22:38 -0000	1.2
@@ -30,7 +30,7 @@
  * component that doesn't do anything though we are validating the parsing of
  * the component descriptor and its deployment
  * 
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
  */
 public class ComponentAssemblyInstallationTest extends TestCase {
 	protected JBIContainer container = new JBIContainer();
@@ -60,36 +60,38 @@
 
 	}
 
-	public void testInstallation() throws Exception {
+	public void testComponentInstallation() throws Exception {
 		try {
 			// Get the component
-			URL componentResource = getClass().getClassLoader().getResource(
-					"logger-component-1.0-jbi-installer.zip");
-			assertNotNull(
-					"The component JAR logger-component-1.0-jbi-installer is missing from the classpath",
-					componentResource);
+			URL componentResource = getClass().getClassLoader().getResource("logger-component-1.0-jbi-installer.zip");
+			assertNotNull("The component JAR logger-component-1.0-jbi-installer is missing from the classpath", componentResource);
 			container.installArchive(componentResource.toExternalForm());
 
-			// Get the component
-			componentResource = getClass().getClassLoader().getResource(
-					"quartz-component-1.0-jbi-installer.zip");
-			assertNotNull(
-					"The component JAR quartz-component-1.0-jbi-installer is missing from the classpath",
-					componentResource);
+            // Get the component
+			componentResource = getClass().getClassLoader().getResource("quartz-component-1.0-jbi-installer.zip");
+			assertNotNull("The component JAR quartz-component-1.0-jbi-installer is missing from the classpath", componentResource);
 			container.installArchive(componentResource.toExternalForm());
+            Thread.sleep(10000);
+		} catch (Exception e) {
+			e.printStackTrace();
+			fail(e.getMessage());
+		}
+	}
 
-			URL assemblyResource = getClass().getClassLoader().getResource(
-					"sample-jbi.zip");
-			assertNotNull(
-					"The assembly JAR sample-jbi.jar is missing from the classpath",
-					assemblyResource);
-			container.installArchive(assemblyResource.toExternalForm());
+    public void testResourceInstallation() throws Exception {
+		try {
+			URL assemblyResource = getClass().getClassLoader().getResource("sample-jbi.zip");
+			assertNotNull("The assembly JAR sample-jbi.jar is missing from the classpath",assemblyResource);
+			String url = ""
+            container.installArchive(url);
 			Thread.sleep(10000);
 		} catch (Exception e) {
 			e.printStackTrace();
 			fail(e.getMessage());
 		}
-	} /*
+	}
+
+    /*
 		 * @see TestCase#tearDown()
 		 */
 
CVSspam 0.2.8



Reply via email to