01: package org.apache.synapse.samples.n2n;
02:
03: import org.apache.synapse.SynapseConstants;
04: import samples.userguide.StockQuoteClient;
05:
06: /**
07: *
08: */
09: public class SynapseSample_50_Integration extends
10: AbstractAutomationTestCase {
11:
12: protected void setUp() throws Exception {
13: System.setProperty(SynapseConstants.SYNAPSE_XML,
14: SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_50.xml");
15: System.setProperty("trpurl", SYNAPSE_BASE_URL);
16: super .setUp();
17: }
18:
19: public void testSample() throws Exception {
20: String resultString = getStringResultOfTest(StockQuoteClient
21: .executeTestClient());
22: assertXpathExists("ns:getQuoteResponse", resultString);
23: assertXpathExists("ns:getQuoteResponse/ns:return", resultString);
24: }
25: }
|