servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r384787 - /incubator/servicemix/trunk/servicemix-core/src/test/java/org/apache/servicemix/jbi/installation/DeploymentMessageTest.java
Date Fri, 10 Mar 2006 13:16:21 GMT
Author: gnodet
Date: Fri Mar 10 05:16:19 2006
New Revision: 384787

URL: http://svn.apache.org/viewcvs?rev=384787&view=rev
Log:
Fix test broken due to  http://svn.apache.org/viewcvs?rev=384539&view=rev

Modified:
    incubator/servicemix/trunk/servicemix-core/src/test/java/org/apache/servicemix/jbi/installation/DeploymentMessageTest.java

Modified: incubator/servicemix/trunk/servicemix-core/src/test/java/org/apache/servicemix/jbi/installation/DeploymentMessageTest.java
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-core/src/test/java/org/apache/servicemix/jbi/installation/DeploymentMessageTest.java?rev=384787&r1=384786&r2=384787&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-core/src/test/java/org/apache/servicemix/jbi/installation/DeploymentMessageTest.java
(original)
+++ incubator/servicemix/trunk/servicemix-core/src/test/java/org/apache/servicemix/jbi/installation/DeploymentMessageTest.java
Fri Mar 10 05:16:19 2006
@@ -144,13 +144,19 @@
         getContainer().activateComponent(component2, "component2");
         getContainer().getEnvironmentContext().createComponentRootDirectory("component2");
         File installSaUrl = createServiceAssemblyArchive("sa", new String[] { "su1", "su2"
}, new String[] { "component1", "component2"});
-        String result = getDeploymentService().deploy(installSaUrl.getAbsolutePath());
+        String result = null;;
+        try {
+            result = getDeploymentService().deploy(installSaUrl.getAbsolutePath());
+            fail("Deployment with an error is not supported");
+        } catch (Exception e) {
+            result = e.getMessage();
+        }
         System.err.println(result);
         Node node = new SourceTransformer().toDOMNode(new StringSource(result));
         assertNotNull(node);
         // main task
-        assertEquals("SUCCESS", textValueOfXPath(node, "//jbi:frmwk-task-result//jbi:task-result"));
-        assertEquals("WARNING", textValueOfXPath(node, "//jbi:frmwk-task-result//jbi:message-type"));
+        assertEquals("FAILED", textValueOfXPath(node, "//jbi:frmwk-task-result//jbi:task-result"));
+        assertEquals("ERROR", textValueOfXPath(node, "//jbi:frmwk-task-result//jbi:message-type"));
         assertEquals("deploy", textValueOfXPath(node, "//jbi:frmwk-task-result//jbi:task-id"));
         // first component task
         assertEquals("FAILED", textValueOfXPath(node, "//jbi:component-task-result[1]//jbi:task-result"));



Mime
View raw message