Author: ffang
Date: Wed Jun 3 06:10:45 2009
New Revision: 781273
URL: http://svn.apache.org/viewvc?rev=781273&view=rev
Log:
[SMXCOMP-554]refactor tests to not use port 9000 so that the tests can pass
with sonar plugin
Modified:
servicemix/components/bindings/servicemix-cxf-bc/trunk/src/test/java/org/apache/servicemix/cxfbc/CxfBcSUClassloaderTest.java
Modified:
servicemix/components/bindings/servicemix-cxf-bc/trunk/src/test/java/org/apache/servicemix/cxfbc/CxfBcSUClassloaderTest.java
URL:
http://svn.apache.org/viewvc/servicemix/components/bindings/servicemix-cxf-bc/trunk/src/test/java/org/apache/servicemix/cxfbc/CxfBcSUClassloaderTest.java?rev=781273&r1=781272&r2=781273&view=diff
==============================================================================
---
servicemix/components/bindings/servicemix-cxf-bc/trunk/src/test/java/org/apache/servicemix/cxfbc/CxfBcSUClassloaderTest.java
(original)
+++
servicemix/components/bindings/servicemix-cxf-bc/trunk/src/test/java/org/apache/servicemix/cxfbc/CxfBcSUClassloaderTest.java
Wed Jun 3 06:10:45 2009
@@ -74,7 +74,9 @@
assertNotNull(wsdl);
service = new CalculatorService(wsdl, new QName(
"http://apache.org/cxf/calculator",
"CalculatorSecondService"));
- port = service.getCalculatorPort();
+ service.addPort(endpoint,
+ SOAPBinding.SOAP12HTTP_BINDING,
"http://localhost:19000/CalculatorService/SoapPort");
+ port = service.getPort(endpoint, CalculatorPortType.class);
ClientProxy.getClient(port).getInFaultInterceptors().add(new
LoggingInInterceptor());
ClientProxy.getClient(port).getInInterceptors().add(new
LoggingInInterceptor());
try {