Author: ningjiang Date: Thu Mar 14 02:53:58 2013 New Revision: 1456309 URL: http://svn.apache.org/r1456309 Log: CAMEL-6156 fix the test error of CxfConsumerSoap12Test
Modified: camel/trunk/tests/camel-blueprint-cxf-test/src/test/java/org/apache/camel/test/cxf/blueprint/CxfConsumerSoap12Test.java Modified: camel/trunk/tests/camel-blueprint-cxf-test/src/test/java/org/apache/camel/test/cxf/blueprint/CxfConsumerSoap12Test.java URL: http://svn.apache.org/viewvc/camel/trunk/tests/camel-blueprint-cxf-test/src/test/java/org/apache/camel/test/cxf/blueprint/CxfConsumerSoap12Test.java?rev=1456309&r1=1456308&r2=1456309&view=diff ============================================================================== --- camel/trunk/tests/camel-blueprint-cxf-test/src/test/java/org/apache/camel/test/cxf/blueprint/CxfConsumerSoap12Test.java (original) +++ camel/trunk/tests/camel-blueprint-cxf-test/src/test/java/org/apache/camel/test/cxf/blueprint/CxfConsumerSoap12Test.java Thu Mar 14 02:53:58 2013 @@ -29,7 +29,6 @@ import org.apache.camel.test.blueprint.C import org.apache.cxf.binding.BindingConfiguration; import org.apache.cxf.binding.soap.SoapBindingConfiguration; import org.apache.hello_world_soap_http.Greeter; - import org.junit.Test; public class CxfConsumerSoap12Test extends CamelBlueprintTestSupport { @@ -49,8 +48,14 @@ public class CxfConsumerSoap12Test exten protected String getBlueprintDescriptor() { return "org/apache/camel/test/cxf/blueprint/CxfConsumerSoap12Beans.xml"; } - + @Test + public void testBeanDefinitionParserAndInvokeGreeter() throws Exception { + // the execution order of the test could cause the test failed + testInvokeGreeter(); + testCxfEndpointBeanDefinitionParser(); + } + public void testCxfEndpointBeanDefinitionParser() { CxfEndpoint routerEndpoint = context.getEndpoint("routerEndpoint", CxfEndpoint.class); assertEquals("Got the wrong endpoint address", routerEndpoint.getAddress(), @@ -64,8 +69,7 @@ public class CxfConsumerSoap12Test exten ((SoapBindingConfiguration)binding).getVersion().getBindingId()); assertTrue("Mtom not enabled", ((SoapBindingConfiguration)binding).isMtomEnabled()); } - - @Test + public void testInvokeGreeter() throws Exception { MockEndpoint mock = getMockEndpoint("mock:result"); mock.expectedMessageCount(1);