From jbossws-commits at lists.jboss.org Sun Mar 28 09:51:27 2010
Content-Type: multipart/mixed; boundary="===============7190507723477902871=="
MIME-Version: 1.0
From: jbossws-commits at lists.jboss.org
To: jbossws-commits at lists.jboss.org
Subject: [jbossws-commits] JBossWS SVN: r11879 - in
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws: jbws2976 and 1
other directory.
Date: Sun, 28 Mar 2010 09:51:27 -0400
Message-ID: <201003281351.o2SDpRw9015114@svn01.web.mwc.hst.phx2.redhat.com>
--===============7190507723477902871==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
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/JAX=
WS2976TestCase.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2976/SOA=
PHandler.java
Removed:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2976/JAX=
WS2976TestCase.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2976/SOA=
PHandler.java
Log:
[JBWS-2976]:Add test case
Copied: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws297=
6 (from rev 11877, framework/branches/jbossws-framework-3.1.2/testsuite/tes=
t/java/org/jboss/test/ws/jaxws/jbws2976)
Deleted: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws29=
76/JAXWS2976TestCase.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- framework/branches/jbossws-framework-3.1.2/testsuite/test/java/org/jbos=
s/test/ws/jaxws/jbws2976/JAXWS2976TestCase.java 2010-03-28 12:58:09 UTC (re=
v 11877)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2976/JA=
XWS2976TestCase.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 Jim Ma
- */
-public class JAXWS2976TestCase extends junit.framework.TestCase
-{
- public void testAddingIncomptiableHandler() throws Exception
- {
- try
- {
- Dispatch source =3D createDispatchSource();
- List handlers =3D new ArrayList();
- handlers.add(new SOAPHandler());
- source.getBinding().setHandlerChain(handlers);
- fail("WebServiceException is not thrown");
- }
- catch (WebServiceException e)
- {
- assertEquals("The adding handler incompatibale WebServiceExceptoi=
n is not thrown ", true, e.getMessage()
- .indexOf("The adding handler in HTTPBinding is incompatiabl=
e") > -1);
- }
- }
- =
- private Dispatch createDispatchSource() throws Exception
- {
- javax.xml.ws.Service service =3D javax.xml.ws.Service.create(new QNa=
me("http://ws.jboss.org", "HelloService"));
- service.addPort(new QName("http://ws.jboss.org", "HelloPort"), HTTPB=
inding.HTTP_BINDING,
- "http://ws.jboss.org/endpointAddress");
- return service.createDispatch(new QName("http://ws.jboss.org", "Hell=
oPort"), Source.class,
- javax.xml.ws.Service.Mode.PAYLOAD);
- }
-}
Copied: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws297=
6/JAXWS2976TestCase.java (from rev 11877, framework/branches/jbossws-framew=
ork-3.1.2/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2976/JAXWS2976Tes=
tCase.java)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2976/JA=
XWS2976TestCase.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2976/JA=
XWS2976TestCase.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 Jim Ma
+ */
+public class JAXWS2976TestCase extends junit.framework.TestCase
+{
+ public void testAddingIncomptiableHandler() throws Exception
+ {
+ try
+ {
+ Dispatch source =3D createDispatchSource();
+ List handlers =3D new ArrayList();
+ handlers.add(new SOAPHandler());
+ source.getBinding().setHandlerChain(handlers);
+ fail("WebServiceException is not thrown");
+ }
+ catch (WebServiceException e)
+ {
+ assertEquals("The adding handler incompatibale WebServiceExceptoi=
n is not thrown ", true, e.getMessage()
+ .indexOf("The adding handler in HTTPBinding is incompatiabl=
e") > -1);
+ }
+ }
+ =
+ private Dispatch createDispatchSource() throws Exception
+ {
+ javax.xml.ws.Service service =3D javax.xml.ws.Service.create(new QNa=
me("http://ws.jboss.org", "HelloService"));
+ service.addPort(new QName("http://ws.jboss.org", "HelloPort"), HTTPB=
inding.HTTP_BINDING,
+ "http://ws.jboss.org/endpointAddress");
+ return service.createDispatch(new QName("http://ws.jboss.org", "Hell=
oPort"), Source.class,
+ javax.xml.ws.Service.Mode.PAYLOAD);
+ }
+}
Deleted: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws29=
76/SOAPHandler.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- framework/branches/jbossws-framework-3.1.2/testsuite/test/java/org/jbos=
s/test/ws/jaxws/jbws2976/SOAPHandler.java 2010-03-28 12:58:09 UTC (rev 1187=
7)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2976/SO=
APHandler.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 Jim Ma
- */
-public class SOAPHandler extends GenericSOAPHandler
-{
- @Override
- protected boolean handleInbound(final MessageContext msgContext)
- {
- //do nothing
- return true;
- }
-}
Copied: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws297=
6/SOAPHandler.java (from rev 11877, framework/branches/jbossws-framework-3.=
1.2/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2976/SOAPHandler.java)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2976/SO=
APHandler.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2976/SO=
APHandler.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 Jim Ma
+ */
+public class SOAPHandler extends GenericSOAPHandler
+{
+ @Override
+ protected boolean handleInbound(final MessageContext msgContext)
+ {
+ //do nothing
+ return true;
+ }
+}
--===============7190507723477902871==--