1
2
3
4
5
6
7
8
9
10
11 package org.mule.module.cxf;
12
13 import org.mule.tck.junit4.FunctionalTestCase;
14 import org.mule.tck.junit4.rule.DynamicPort;
15
16 import org.apache.cxf.Bus;
17 import org.junit.Rule;
18 import org.junit.Test;
19
20 import static org.junit.Assert.assertNotNull;
21
22 public class StaxFeatureTestCase extends FunctionalTestCase
23 {
24
25 @Rule
26 public DynamicPort dynamicPort = new DynamicPort("port1");
27
28 @Override
29 protected String getConfigResources()
30 {
31 return "stax-feature-conf.xml";
32 }
33
34 @Test
35 public void testEchoService() throws Exception
36 {
37 CxfConfiguration cxfCon = (CxfConfiguration)muleContext.getRegistry().lookupObject(CxfConstants.DEFAULT_CXF_CONFIGURATION);
38 assertNotNull(cxfCon);
39
40 Bus cxfBus = cxfCon.getCxfBus();
41
42
43
44
45
46
47
48 }
49
50 }
51