Author: jim.ma
Date: 2010-03-28 09:51:26 -0400 (Sun, 28 Mar 2010)
New Revision: 11879
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2976/
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2976/JAXWS2976TestCase.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2976/SOAPHandler.java
Removed:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2976/JAXWS2976TestCase.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2976/SOAPHandler.java
Log:
[JBWS-2976]:Add test case
Copied: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2976 (from rev
11877,
framework/branches/jbossws-framework-3.1.2/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2976)
Deleted:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2976/JAXWS2976TestCase.java
===================================================================
---
framework/branches/jbossws-framework-3.1.2/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2976/JAXWS2976TestCase.java 2010-03-28
12:58:09 UTC (rev 11877)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2976/JAXWS2976TestCase.java 2010-03-28
13:51:26 UTC (rev 11879)
@@ -1,64 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2010, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.test.ws.jaxws.jbws2976;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import javax.xml.namespace.QName;
-import javax.xml.transform.Source;
-import javax.xml.ws.Dispatch;
-import javax.xml.ws.WebServiceException;
-import javax.xml.ws.handler.Handler;
-import javax.xml.ws.http.HTTPBinding;
-
-/**
- * @author <a href="ema(a)redhat.com">Jim Ma</a>
- */
-public class JAXWS2976TestCase extends junit.framework.TestCase
-{
- public void testAddingIncomptiableHandler() throws Exception
- {
- try
- {
- Dispatch<Source> source = createDispatchSource();
- List<Handler> handlers = new ArrayList<Handler>();
- handlers.add(new SOAPHandler());
- source.getBinding().setHandlerChain(handlers);
- fail("WebServiceException is not thrown");
- }
- catch (WebServiceException e)
- {
- assertEquals("The adding handler incompatibale WebServiceExceptoin is not
thrown ", true, e.getMessage()
- .indexOf("The adding handler in HTTPBinding is incompatiable")
> -1);
- }
- }
-
- private Dispatch<Source> createDispatchSource() throws Exception
- {
- javax.xml.ws.Service service = javax.xml.ws.Service.create(new
QName("http://ws.jboss.org", "HelloService"));
- service.addPort(new QName("http://ws.jboss.org", "HelloPort"),
HTTPBinding.HTTP_BINDING,
- "http://ws.jboss.org/endpointAddress");
- return service.createDispatch(new QName("http://ws.jboss.org",
"HelloPort"), Source.class,
- javax.xml.ws.Service.Mode.PAYLOAD);
- }
-}
Copied:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2976/JAXWS2976TestCase.java
(from rev 11877,
framework/branches/jbossws-framework-3.1.2/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2976/JAXWS2976TestCase.java)
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2976/JAXWS2976TestCase.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2976/JAXWS2976TestCase.java 2010-03-28
13:51:26 UTC (rev 11879)
@@ -0,0 +1,64 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2976;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.xml.namespace.QName;
+import javax.xml.transform.Source;
+import javax.xml.ws.Dispatch;
+import javax.xml.ws.WebServiceException;
+import javax.xml.ws.handler.Handler;
+import javax.xml.ws.http.HTTPBinding;
+
+/**
+ * @author <a href="ema(a)redhat.com">Jim Ma</a>
+ */
+public class JAXWS2976TestCase extends junit.framework.TestCase
+{
+ public void testAddingIncomptiableHandler() throws Exception
+ {
+ try
+ {
+ Dispatch<Source> source = createDispatchSource();
+ List<Handler> handlers = new ArrayList<Handler>();
+ handlers.add(new SOAPHandler());
+ source.getBinding().setHandlerChain(handlers);
+ fail("WebServiceException is not thrown");
+ }
+ catch (WebServiceException e)
+ {
+ assertEquals("The adding handler incompatibale WebServiceExceptoin is not
thrown ", true, e.getMessage()
+ .indexOf("The adding handler in HTTPBinding is incompatiable")
> -1);
+ }
+ }
+
+ private Dispatch<Source> createDispatchSource() throws Exception
+ {
+ javax.xml.ws.Service service = javax.xml.ws.Service.create(new
QName("http://ws.jboss.org", "HelloService"));
+ service.addPort(new QName("http://ws.jboss.org", "HelloPort"),
HTTPBinding.HTTP_BINDING,
+ "http://ws.jboss.org/endpointAddress");
+ return service.createDispatch(new QName("http://ws.jboss.org",
"HelloPort"), Source.class,
+ javax.xml.ws.Service.Mode.PAYLOAD);
+ }
+}
Deleted:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2976/SOAPHandler.java
===================================================================
---
framework/branches/jbossws-framework-3.1.2/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2976/SOAPHandler.java 2010-03-28
12:58:09 UTC (rev 11877)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2976/SOAPHandler.java 2010-03-28
13:51:26 UTC (rev 11879)
@@ -1,40 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2010, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.test.ws.jaxws.jbws2976;
-
-import javax.xml.ws.handler.LogicalMessageContext;
-import javax.xml.ws.handler.MessageContext;
-
-import org.jboss.wsf.common.handler.GenericSOAPHandler;
-
-/**
- * @author <a href="ema(a)redhat.com">Jim Ma</a>
- */
-public class SOAPHandler extends GenericSOAPHandler<LogicalMessageContext>
-{
- @Override
- protected boolean handleInbound(final MessageContext msgContext)
- {
- //do nothing
- return true;
- }
-}
Copied:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2976/SOAPHandler.java
(from rev 11877,
framework/branches/jbossws-framework-3.1.2/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2976/SOAPHandler.java)
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2976/SOAPHandler.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2976/SOAPHandler.java 2010-03-28
13:51:26 UTC (rev 11879)
@@ -0,0 +1,40 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2976;
+
+import javax.xml.ws.handler.LogicalMessageContext;
+import javax.xml.ws.handler.MessageContext;
+
+import org.jboss.wsf.common.handler.GenericSOAPHandler;
+
+/**
+ * @author <a href="ema(a)redhat.com">Jim Ma</a>
+ */
+public class SOAPHandler extends GenericSOAPHandler<LogicalMessageContext>
+{
+ @Override
+ protected boolean handleInbound(final MessageContext msgContext)
+ {
+ //do nothing
+ return true;
+ }
+}