/* This method will test setting up of the Out Sequence of the Proxy Service wizard */ public void testSetOutSequence() throws Exception { ESBCommon esbCommon = new ESBCommon(selenium); ESBSendMediatorTest esbSendMediatorTest = new ESBSendMediatorTest(selenium); ESBAddProxyServiceTest esbAddProxyServiceTest = new ESBAddProxyServiceTest(selenium); // Available options are outSeqOpAnon, outSeqOpReg, outSeqOpImp, inSeqOpNone esbAddProxyServiceTest.selectOutSequence("outSeqOpAnon", null); esbCommon.addRootLevelChildren("Add Child", "Core", "Send"); esbSendMediatorTest.addNormalSendMediator("0"); esbCommon.mediatorUpdate(); esbCommon.sequenceSave(); System.out.println("The Out sequence was created successfully"); }
/* This method will test setting up of the In Sequence of the Proxy Service wizard */ public void testSetInSequence() throws Exception { ESBCommon esbCommon = new ESBCommon(selenium); ESBAddAddressEndpointTest esbAddAddressEndpointTest = new ESBAddAddressEndpointTest(selenium); ESBPropertyMediatorTest esbPropertyMediatorTest = new ESBPropertyMediatorTest(selenium); ESBAddProxyServiceTest esbAddProxyServiceTest = new ESBAddProxyServiceTest(selenium); // Available options are inSeqOpAnon, inSeqOpReg, inSeqOpImp, inSeqOpNone esbAddProxyServiceTest.selectInSequence("inSeqOpAnon", null); esbCommon.addRootLevelChildren("Add Child", "Core", "Property"); esbPropertyMediatorTest.addBasicPropInfo("0", "OUT_ONLY", "set"); esbPropertyMediatorTest.addPropertyMediator("value", "true", "Synapse"); esbCommon.mediatorUpdate(); esbCommon.sequenceSave(); System.out.println("The In sequence was created successfully"); }