From jboss-remoting-commits at lists.jboss.org Wed Aug 4 22:05:29 2010 Content-Type: multipart/mixed; boundary="===============0102698598570392484==" MIME-Version: 1.0 From: jboss-remoting-commits at lists.jboss.org To: jboss-remoting-commits at lists.jboss.org Subject: [jboss-remoting-commits] JBoss Remoting SVN: r6037 - remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/servlet/preservelines. Date: Wed, 04 Aug 2010 22:05:29 -0400 Message-ID: <201008050205.o7525TsM020298@svn01.web.mwc.hst.phx2.redhat.com> --===============0102698598570392484== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: ron.sigal(a)jboss.com Date: 2010-08-04 22:05:28 -0400 (Wed, 04 Aug 2010) New Revision: 6037 Modified: remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/servl= et/preservelines/ServletLinePreservationTestClient.java remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/servl= et/preservelines/TestInvocationHandler.java remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/servl= et/preservelines/readme.txt remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/servl= et/preservelines/remoting-servlet-service.xml Log: JBREM-1241: Added svn:eol-style subversion property. Modified: remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transpor= t/servlet/preservelines/ServletLinePreservationTestClient.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 --- remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/serv= let/preservelines/ServletLinePreservationTestClient.java 2010-08-05 02:02:3= 1 UTC (rev 6036) +++ remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/serv= let/preservelines/ServletLinePreservationTestClient.java 2010-08-05 02:05:2= 8 UTC (rev 6037) @@ -1,51 +1,51 @@ -/* -* JBoss, Home of Professional Open Source -* Copyright 2005, JBoss Inc., and individual contributors as indicated -* by the @authors tag. See the copyright.txt 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.remoting.transport.servlet.preservelines; - -import org.jboss.remoting.InvokerLocator; -import org.jboss.test.remoting.transport.http.lines.HttpLinePreservationTe= stCase; - - -/** - * Unit tests for JBREM-809. - * = - * @author Ron Sigal - * @version $Revision: 1.1 $ - *

- * Copyright Feb 8, 2008 - *

- */ -public class ServletLinePreservationTestClient extends HttpLinePreservatio= nTestCase -{ - protected String getTransport() - { - return "servlet"; - } - = - protected void setupServer(boolean addConfig, String preserveLines) thr= ows Exception - { - locatorURI =3D "servlet://localhost:8080/servlet-invoker/ServerInvok= erServlet"; - serverLocator =3D new InvokerLocator(locatorURI); - } - - public void testPreservationClientNoPreservationServer() {} +/* +* JBoss, Home of Professional Open Source +* Copyright 2005, JBoss Inc., and individual contributors as indicated +* by the @authors tag. See the copyright.txt 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.remoting.transport.servlet.preservelines; + +import org.jboss.remoting.InvokerLocator; +import org.jboss.test.remoting.transport.http.lines.HttpLinePreservationTe= stCase; + + +/** + * Unit tests for JBREM-809. + * = + * @author Ron Sigal + * @version $Revision: 1.1 $ + *

+ * Copyright Feb 8, 2008 + *

+ */ +public class ServletLinePreservationTestClient extends HttpLinePreservatio= nTestCase +{ + protected String getTransport() + { + return "servlet"; + } + = + protected void setupServer(boolean addConfig, String preserveLines) thr= ows Exception + { + locatorURI =3D "servlet://localhost:8080/servlet-invoker/ServerInvok= erServlet"; + serverLocator =3D new InvokerLocator(locatorURI); + } + + public void testPreservationClientNoPreservationServer() {} } \ No newline at end of file Property changes on: remoting2/branches/2.2/src/tests/org/jboss/test/remoti= ng/transport/servlet/preservelines/ServletLinePreservationTestClient.java ___________________________________________________________________ Name: svn:eol-style + native Modified: remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transpor= t/servlet/preservelines/TestInvocationHandler.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 --- remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/serv= let/preservelines/TestInvocationHandler.java 2010-08-05 02:02:31 UTC (rev 6= 036) +++ remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/serv= let/preservelines/TestInvocationHandler.java 2010-08-05 02:05:28 UTC (rev 6= 037) @@ -1,51 +1,51 @@ -/* -* JBoss, Home of Professional Open Source -* Copyright 2005, JBoss Inc., and individual contributors as indicated -* by the @authors tag. See the copyright.txt 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.remoting.transport.servlet.preservelines; - -import javax.management.MBeanServer; - -import org.jboss.remoting.InvocationRequest; -import org.jboss.remoting.ServerInvocationHandler; -import org.jboss.remoting.ServerInvoker; -import org.jboss.remoting.callback.InvokerCallbackHandler; - -/** - * For JBREM-809. - * = - * @author Ron Sigal - * @version $Revision: 1.1 $ - *

- * Copyright Feb 8, 2008 - *

- */ -public class TestInvocationHandler implements ServerInvocationHandler -{ - public void addListener(InvokerCallbackHandler callbackHandler) {} - public Object invoke(final InvocationRequest invocation) throws Throwab= le - { - return invocation.getParameter(); - } - public void removeListener(InvokerCallbackHandler callbackHandler) {} - public void setMBeanServer(MBeanServer server) {} - public void setInvoker(ServerInvoker invoker) {} +/* +* JBoss, Home of Professional Open Source +* Copyright 2005, JBoss Inc., and individual contributors as indicated +* by the @authors tag. See the copyright.txt 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.remoting.transport.servlet.preservelines; + +import javax.management.MBeanServer; + +import org.jboss.remoting.InvocationRequest; +import org.jboss.remoting.ServerInvocationHandler; +import org.jboss.remoting.ServerInvoker; +import org.jboss.remoting.callback.InvokerCallbackHandler; + +/** + * For JBREM-809. + * = + * @author Ron Sigal + * @version $Revision: 1.1 $ + *

+ * Copyright Feb 8, 2008 + *

+ */ +public class TestInvocationHandler implements ServerInvocationHandler +{ + public void addListener(InvokerCallbackHandler callbackHandler) {} + public Object invoke(final InvocationRequest invocation) throws Throwab= le + { + return invocation.getParameter(); + } + public void removeListener(InvokerCallbackHandler callbackHandler) {} + public void setMBeanServer(MBeanServer server) {} + public void setInvoker(ServerInvoker invoker) {} } \ No newline at end of file Property changes on: remoting2/branches/2.2/src/tests/org/jboss/test/remoti= ng/transport/servlet/preservelines/TestInvocationHandler.java ___________________________________________________________________ Name: svn:eol-style + native Modified: remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transpor= t/servlet/preservelines/readme.txt =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 --- remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/serv= let/preservelines/readme.txt 2010-08-05 02:02:31 UTC (rev 6036) +++ remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/serv= let/preservelines/readme.txt 2010-08-05 02:05:28 UTC (rev 6037) @@ -1,40 +1,40 @@ -The servlet (and sslservlet) transport tests require a web container. Cur= rently, these tests have to be run -manually (JBREM-139 has been created to automate this). Until then, here = are the instructions for running -the tests manually. - -******************************************************* -***** JBREM-139 is done. ***** -***** See tests.functional.servlet in build.xml. ***** -******************************************************* - -servlet - -1. Get JBossAS and copy remoting's servlet-invoker.war (from distro or bui= ld) to the deploy directory. -2. Copy the WEB-INF/web.xml under this directory into the that of the serv= let-invoker.war/WEB-INF directory. -3. Copy remoting-servlet-invoker-service.xml to deploy directory. -4. Copy jboss-remoting-tests.jar to server lib directory -5. Start web container (JBossAS). -6. Run ServletLinePreservationTestClient. - - -sslservlet - -1. Steps 1-4 above, except use the WEB-INF/web.xml and remoting-servlet-in= voker-service.xml that is under the -servlet/ssl directory. -2. Copy the servlet/ssl/.keystore file to the server conf directory -3. Edit jboss-web.deployer/server.xml to enable ssl connector. It should = look like following: - = - = - = - -4. Start web container (JBossAS). -5. Run SSLServletInvokerTestClient or SSLServletClientAddressTestClient. - - - +The servlet (and sslservlet) transport tests require a web container. Cur= rently, these tests have to be run +manually (JBREM-139 has been created to automate this). Until then, here = are the instructions for running +the tests manually. + +******************************************************* +***** JBREM-139 is done. ***** +***** See tests.functional.servlet in build.xml. ***** +******************************************************* + +servlet + +1. Get JBossAS and copy remoting's servlet-invoker.war (from distro or bui= ld) to the deploy directory. +2. Copy the WEB-INF/web.xml under this directory into the that of the serv= let-invoker.war/WEB-INF directory. +3. Copy remoting-servlet-invoker-service.xml to deploy directory. +4. Copy jboss-remoting-tests.jar to server lib directory +5. Start web container (JBossAS). +6. Run ServletLinePreservationTestClient. + + +sslservlet + +1. Steps 1-4 above, except use the WEB-INF/web.xml and remoting-servlet-in= voker-service.xml that is under the +servlet/ssl directory. +2. Copy the servlet/ssl/.keystore file to the server conf directory +3. Edit jboss-web.deployer/server.xml to enable ssl connector. It should = look like following: + = + = + = + +4. Start web container (JBossAS). +5. Run SSLServletInvokerTestClient or SSLServletClientAddressTestClient. + + + Property changes on: remoting2/branches/2.2/src/tests/org/jboss/test/remoti= ng/transport/servlet/preservelines/readme.txt ___________________________________________________________________ Name: svn:eol-style + native Modified: remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transpor= t/servlet/preservelines/remoting-servlet-service.xml =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 --- remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/serv= let/preservelines/remoting-servlet-service.xml 2010-08-05 02:02:31 UTC (rev= 6036) +++ remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/serv= let/preservelines/remoting-servlet-service.xml 2010-08-05 02:05:28 UTC (rev= 6037) @@ -1,22 +1,22 @@ - - - - - - - - - localhost - 8080 - true - servlet-invoker/ServerInvokerServl= et - - - org.jboss.test.remoting.transpo= rt.servlet.preservelines.TestInvocationHandler - - - - - + + + + + + + + + localhost + 8080 + true + servlet-invoker/ServerInvokerServl= et + + + org.jboss.test.remoting.transpo= rt.servlet.preservelines.TestInvocationHandler + + + + + Property changes on: remoting2/branches/2.2/src/tests/org/jboss/test/remoti= ng/transport/servlet/preservelines/remoting-servlet-service.xml ___________________________________________________________________ Name: svn:eol-style + native --===============0102698598570392484==--