01: package org.apache.synapse.samples.n2n;
02:
03: import org.apache.synapse.SynapseConstants;
04: import org.apache.axiom.om.OMElement;
05: import samples.userguide.MTOMSwAClient;
06:
07: /**
08: *
09: */
10: public class SynapseSample_51_Integration extends
11: AbstractAutomationTestCase {
12:
13: protected void setUp() throws Exception {
14: System.setProperty(SynapseConstants.SYNAPSE_XML,
15: SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_51.xml");
16: super .setUp();
17: }
18:
19: public void testSample() throws Exception {
20: System.setProperty("opt_mode", "mtom");
21: OMElement response = MTOMSwAClient
22: .sendUsingMTOM(
23: "./../../repository/conf/sample/resources/mtom/asf-logo.gif",
24: "http://localhost:8080/soap/MTOMSwASampleService");
25: // assertXpathExists("ns:getQuoteResponse", resultString);
26: // assertXpathExists("ns:getQuoteResponse/ns:return", resultString);
27: }
28: }
|