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