Author: rr
Date: Fri May 21 03:59:32 2010
New Revision: 946862
URL: http://svn.apache.org/viewvc?rev=946862&view=rev
Log:
ODE-822: In pmapi - garbage filter for instances select everything (test,
thanks to Anurag Aggarwal)
Modified:
ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/management/InstanceManagementTest.java
Modified:
ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/management/InstanceManagementTest.java
URL:
http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/management/InstanceManagementTest.java?rev=946862&r1=946861&r2=946862&view=diff
==============================================================================
---
ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/management/InstanceManagementTest.java
(original)
+++
ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/management/InstanceManagementTest.java
Fri May 21 03:59:32 2010
@@ -87,6 +87,19 @@ public class InstanceManagementTest exte
assertTrue(instanceNb(result) == 0);
}
+ @Test
+ public void testListInstancesWithGarbageFilter() throws Exception {
+ OMElement listRoot = _client.buildMessage("listInstances", new
String[] {"filter", "order", "limit"},
+ new String[] {"", "", "10"});
+ OMElement result = sendToIM(listRoot);
+ assertTrue("Ensures that there are process instances: " +
instanceNb(result), instanceNb(result) >0);
+
+ listRoot = _client.buildMessage("listInstances", new String[]
{"filter", "order", "limit"},
+ new String[] {"blah", "", "10"});
+ result = sendToIM(listRoot);
+ assertTrue("Ensures that there are no process instances: " +
instanceNb(result), instanceNb(result) ==0);
+ }
+
@Test
public void testListAllInstances() throws Exception {
OMElement root = _client.buildMessage("listAllInstancesWithLimit", new
String[] {"limit"}, new String[] {"1"});