You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by mr...@apache.org on 2006/08/22 00:16:40 UTC
svn commit: r433394 -
/incubator/ode/trunk/axis2/src/test/java/org/apache/ode/axis2/management/InstanceManagementTest.java
Author: mriou
Date: Mon Aug 21 15:16:34 2006
New Revision: 433394
URL: http://svn.apache.org/viewvc?rev=433394&view=rev
Log:
Just one more test.
Modified:
incubator/ode/trunk/axis2/src/test/java/org/apache/ode/axis2/management/InstanceManagementTest.java
Modified: incubator/ode/trunk/axis2/src/test/java/org/apache/ode/axis2/management/InstanceManagementTest.java
URL: http://svn.apache.org/viewvc/incubator/ode/trunk/axis2/src/test/java/org/apache/ode/axis2/management/InstanceManagementTest.java?rev=433394&r1=433393&r2=433394&view=diff
==============================================================================
--- incubator/ode/trunk/axis2/src/test/java/org/apache/ode/axis2/management/InstanceManagementTest.java (original)
+++ incubator/ode/trunk/axis2/src/test/java/org/apache/ode/axis2/management/InstanceManagementTest.java Mon Aug 21 15:16:34 2006
@@ -83,6 +83,16 @@
assert(result.toString().split("instance-info").length == 3);
}
+ public void testGetInstanceInfoFault() throws Exception {
+ // Hopefully this id won't exist
+ OMElement root = _client.buildMessage("getInstanceInfo", new String[] {"iid"}, new String[] {"65431"});
+ try {
+ OMElement result = sendToIM(root);
+ } catch (AxisFault axisFault) {
+ assert(axisFault.getCause().toString().indexOf("InstanceNotFoundException") > 0);
+ }
+ }
+
public void testGetScopeInfo() throws Exception {
OMElement root = _client.buildMessage("listAllInstances", new String[] {}, new String[] {});
OMElement result = sendToIM(root);