You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by jl...@apache.org on 2007/05/31 11:12:16 UTC
svn commit: r543092 -
/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/handlers/HandlerInvocationTest.java
Author: jliu
Date: Thu May 31 02:12:15 2007
New Revision: 543092
URL: http://svn.apache.org/viewvc?view=rev&rev=543092
Log:
Test case for CXF-693. PortInfo.getBindingID() does work properly, if it is not working in some cases, please provide a test case.
Modified:
incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/handlers/HandlerInvocationTest.java
Modified: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/handlers/HandlerInvocationTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/handlers/HandlerInvocationTest.java?view=diff&rev=543092&r1=543091&r2=543092
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/handlers/HandlerInvocationTest.java (original)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/handlers/HandlerInvocationTest.java Thu May 31 02:12:15 2007
@@ -101,6 +101,8 @@
handlerTestNew.pingOneWay();
+ String bindingID = myHandlerResolver.bindingID;
+ assertEquals("http://schemas.xmlsoap.org/wsdl/soap/http", bindingID);
assertEquals(1, handler1.getHandleMessageInvoked());
assertEquals(1, handler2.getHandleMessageInvoked());
}
@@ -860,6 +862,7 @@
if (!outbound) {
LogicalMessage msg = ctx.getMessage();
Source source = msg.getPayload();
+ assertNotNull(source);
}
} catch (Exception e) {
e.printStackTrace();
@@ -878,6 +881,7 @@
if (!outbound) {
try {
SOAPMessage msg = ctx.getMessage();
+ assertNotNull(msg);
} catch (Exception e) {
e.printStackTrace();
fail(e.toString());
@@ -1150,6 +1154,7 @@
public class MyHandlerResolver implements HandlerResolver {
List<Handler> chain = new ArrayList<Handler>();
+ String bindingID;
public MyHandlerResolver(Handler... handlers) {
for (Handler h : handlers) {
@@ -1158,6 +1163,7 @@
}
public List<Handler> getHandlerChain(PortInfo portInfo) {
+ bindingID = portInfo.getBindingID();
return chain;
}