svn commit r43898 - trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit r43898 - trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb

Evanthika Amarasiri
Author: evanthika
Date: Thu Aug 20 19:25:55 2009
New Revision: 43898
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=43898

Log:
Mediator levels edited

Modified:
   trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBFilterMediatorsTest.java

Modified: trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBFilterMediatorsTest.java
URL: http://wso2.org/svn/browse/wso2/trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBFilterMediatorsTest.java?rev=43898&r1=43897&r2=43898&view=diff
==============================================================================
--- trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBFilterMediatorsTest.java (original)
+++ trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBFilterMediatorsTest.java Thu Aug 20 19:25:55 2009
@@ -152,37 +152,35 @@
      */
     public void addSwitchMediator() throws Exception{
         ESBCommon esbCommon = new ESBCommon(selenium);
-        ESBSequenceTreePopulatorTest esbSequenceTreePopulatorTest = new ESBSequenceTreePopulatorTest(selenium);
-        ESBSendMediatorTest esbSendMediatorTest = new ESBSendMediatorTest(selenium);
         ESBSwitchMediatorTest esbSwitchMediatorTest = new ESBSwitchMediatorTest(selenium);
         ESBPropertyMediatorTest esbPropertyMediatorTest = new ESBPropertyMediatorTest(selenium);
         
         //Adding a Switch mediator
-        esbCommon.addChildMediators("6","Filter","Switch");
-        esbSwitchMediatorTest.addSwitchMediator("6.0","//m0:getQuote/m0:request/m0:symbol");
+        esbCommon.addRootLevelChildren("Add Child","Filter","Switch");
+        esbSwitchMediatorTest.addSwitchMediator("6","//m0:getQuote/m0:request/m0:symbol");
         esbSwitchMediatorTest.addSwitchNamespace("m0","http://services.samples/xsd");
         esbCommon.mediatorUpdate();
 
         //Adding the first level Case mediator
-        esbSwitchMediatorTest.addCase("6.0","IBM","6.0.0");
+        esbSwitchMediatorTest.addCase("6","IBM","6.0");
         esbCommon.mediatorUpdate();
-        esbSwitchMediatorTest.addCaseChildMediator("6.0.0", "Core","Property");
-        esbPropertyMediatorTest.addBasicPropInfo("6.0.0.0","symbol","set");
+        esbSwitchMediatorTest.addCaseChildMediator("6.0", "Core","Property");
+        esbPropertyMediatorTest.addBasicPropInfo("6.0.0","symbol","set");
         esbPropertyMediatorTest.addPropertyMediator("value","Great stock - IBM","Synapse");
         esbCommon.mediatorUpdate();
 
         //Adding the second level Case mediator
-        esbSwitchMediatorTest.addCase("6.0","MSFT","6.0.1");
+        esbSwitchMediatorTest.addCase("6","MSFT","6.1");
         esbCommon.mediatorUpdate();
-        esbSwitchMediatorTest.addCaseChildMediator("6.0.1", "Core","Property");
-        esbPropertyMediatorTest.addBasicPropInfo("6.0.1.0","symbol","set");
+        esbSwitchMediatorTest.addCaseChildMediator("6.1", "Core","Property");
+        esbPropertyMediatorTest.addBasicPropInfo("6.1.0","symbol","set");
         esbPropertyMediatorTest.addPropertyMediator("value","Are you sure? - MSFT","Synapse");
         esbCommon.mediatorUpdate();
 
         //Adding the Default Case
-        esbSwitchMediatorTest.addDefaultCase("6.0");
-        esbSwitchMediatorTest.addDefaultChildMediator("6.0.2","Core","Property");
-        esbPropertyMediatorTest.addBasicPropInfo("6.0.2.0","symbol","set");
+        esbSwitchMediatorTest.addDefaultCase("6");
+        esbSwitchMediatorTest.addDefaultChildMediator("6.2","Core","Property");
+        esbPropertyMediatorTest.addBasicPropInfo("6.2.0","symbol","set");
         esbPropertyMediatorTest.addPropertyMediator("expression","fn:concat('Normal Stock - ', //m0:getQuote/m0:request/m0:symbol)","Synapse");
         esbCommon.mediatorUpdate();
     }

_______________________________________________
Commons-dev mailing list
[hidden email]
https://wso2.org/cgi-bin/mailman/listinfo/commons-dev