[jboss-remoting-commits] JBoss Remoting SVN: r6025 - remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/servlet/contenttype.

jboss-remoting-commits at lists.jboss.org jboss-remoting-commits at lists.jboss.org
Wed Aug 4 21:40:37 EDT 2010


Author: ron.sigal at jboss.com
Date: 2010-08-04 21:40:36 -0400 (Wed, 04 Aug 2010)
New Revision: 6025

Modified:
   remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/servlet/contenttype/ServletContentTypeTestClient.java
   remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/servlet/contenttype/TestInvocationHandlerCR.java
   remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/servlet/contenttype/TestInvocationHandlerLF.java
   remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/servlet/contenttype/TestInvocationHandlerOK.java
Log:
JBREM-1241: Added svn:eol-style subversion property.

Modified: remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/servlet/contenttype/ServletContentTypeTestClient.java
===================================================================
--- remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/servlet/contenttype/ServletContentTypeTestClient.java	2010-08-05 01:37:45 UTC (rev 6024)
+++ remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/servlet/contenttype/ServletContentTypeTestClient.java	2010-08-05 01:40:36 UTC (rev 6025)
@@ -1,60 +1,60 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2009, 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.remoting.transport.servlet.contenttype;
-
-import org.apache.log4j.Logger;
-import org.jboss.test.remoting.transport.http.contenttype.ContentTypeTestCase;
-
-/**
- * Unit tests for JBREM-1101.
- * 
- * @author <a href="ron.sigal at jboss.com">Ron Sigal</a>
- * @version 
- * <p>
- * Copyright Sep 1, 2009
- * </p>
- */
-public class ServletContentTypeTestClient extends ContentTypeTestCase
-{
-   protected static Logger log = Logger.getLogger(ServletContentTypeTestClient.class);
-   
-   protected void setupServer(String contentType) throws Exception
-   {
-      locatorURI = "http://localhost:8080/servlet-invoker/ServerInvokerServlet";
-      
-      if (CONTENT_TYPE.equals(contentType))
-      {
-         locatorURI += "/OK";
-      }
-      if (INVALID_CONTENT_TYPE_CR.equals(contentType))
-      {
-         locatorURI += "/CR";
-      }
-      else if (INVALID_CONTENT_TYPE_LF.equals(contentType))
-      {
-         locatorURI += "/LF";
-      }
-      
-      log.info("setting InvokerLocator to " + locatorURI);
-   }
-}
-
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, 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.remoting.transport.servlet.contenttype;
+
+import org.apache.log4j.Logger;
+import org.jboss.test.remoting.transport.http.contenttype.ContentTypeTestCase;
+
+/**
+ * Unit tests for JBREM-1101.
+ * 
+ * @author <a href="ron.sigal at jboss.com">Ron Sigal</a>
+ * @version 
+ * <p>
+ * Copyright Sep 1, 2009
+ * </p>
+ */
+public class ServletContentTypeTestClient extends ContentTypeTestCase
+{
+   protected static Logger log = Logger.getLogger(ServletContentTypeTestClient.class);
+   
+   protected void setupServer(String contentType) throws Exception
+   {
+      locatorURI = "http://localhost:8080/servlet-invoker/ServerInvokerServlet";
+      
+      if (CONTENT_TYPE.equals(contentType))
+      {
+         locatorURI += "/OK";
+      }
+      if (INVALID_CONTENT_TYPE_CR.equals(contentType))
+      {
+         locatorURI += "/CR";
+      }
+      else if (INVALID_CONTENT_TYPE_LF.equals(contentType))
+      {
+         locatorURI += "/LF";
+      }
+      
+      log.info("setting InvokerLocator to " + locatorURI);
+   }
+}
+


Property changes on: remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/servlet/contenttype/ServletContentTypeTestClient.java
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/servlet/contenttype/TestInvocationHandlerCR.java
===================================================================
--- remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/servlet/contenttype/TestInvocationHandlerCR.java	2010-08-05 01:37:45 UTC (rev 6024)
+++ remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/servlet/contenttype/TestInvocationHandlerCR.java	2010-08-05 01:40:36 UTC (rev 6025)
@@ -1,64 +1,64 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2009, 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.remoting.transport.servlet.contenttype;
-
-import java.util.Map;
-
-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-1101 unit tests.
- * 
- * @author <a href="ron.sigal at jboss.com">Ron Sigal</a>
- * @version $Rev$
- * <p>
- * Copyright Sep 1, 2009
- * </p>
- */
-public class TestInvocationHandlerCR implements ServerInvocationHandler
-{
-   public static String CONTENT_TYPE = "test/testContentType";
-   public static String INVALID_CONTENT_TYPE_CR = "test/x" + '\r' + "y";
-   public static String INVALID_CONTENT_TYPE_LF = "test/x" + '\n' + "y";
-   public static String REQUEST = "testRequest";
-   public static String RESPONSE = "testResponse";
-   
-   public void addListener(InvokerCallbackHandler callbackHandler) {}
-   public Object invoke(final InvocationRequest invocation) throws Throwable
-   {
-      Map response = invocation.getReturnPayload();
-      if (response != null)
-      {
-         response.put("Content-Type", INVALID_CONTENT_TYPE_CR);
-      }
-      return RESPONSE;
-   }
-   public void removeListener(InvokerCallbackHandler callbackHandler) {}
-   public void setMBeanServer(MBeanServer server) {}
-   public void setInvoker(ServerInvoker invoker) {}
-}
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, 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.remoting.transport.servlet.contenttype;
+
+import java.util.Map;
+
+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-1101 unit tests.
+ * 
+ * @author <a href="ron.sigal at jboss.com">Ron Sigal</a>
+ * @version $Rev$
+ * <p>
+ * Copyright Sep 1, 2009
+ * </p>
+ */
+public class TestInvocationHandlerCR implements ServerInvocationHandler
+{
+   public static String CONTENT_TYPE = "test/testContentType";
+   public static String INVALID_CONTENT_TYPE_CR = "test/x" + '\r' + "y";
+   public static String INVALID_CONTENT_TYPE_LF = "test/x" + '\n' + "y";
+   public static String REQUEST = "testRequest";
+   public static String RESPONSE = "testResponse";
+   
+   public void addListener(InvokerCallbackHandler callbackHandler) {}
+   public Object invoke(final InvocationRequest invocation) throws Throwable
+   {
+      Map response = invocation.getReturnPayload();
+      if (response != null)
+      {
+         response.put("Content-Type", INVALID_CONTENT_TYPE_CR);
+      }
+      return RESPONSE;
+   }
+   public void removeListener(InvokerCallbackHandler callbackHandler) {}
+   public void setMBeanServer(MBeanServer server) {}
+   public void setInvoker(ServerInvoker invoker) {}
+}


Property changes on: remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/servlet/contenttype/TestInvocationHandlerCR.java
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/servlet/contenttype/TestInvocationHandlerLF.java
===================================================================
--- remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/servlet/contenttype/TestInvocationHandlerLF.java	2010-08-05 01:37:45 UTC (rev 6024)
+++ remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/servlet/contenttype/TestInvocationHandlerLF.java	2010-08-05 01:40:36 UTC (rev 6025)
@@ -1,64 +1,64 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2009, 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.remoting.transport.servlet.contenttype;
-
-import java.util.Map;
-
-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-1101 unit tests.
- * 
- * @author <a href="ron.sigal at jboss.com">Ron Sigal</a>
- * @version $Rev$
- * <p>
- * Copyright Sep 1, 2009
- * </p>
- */
-public class TestInvocationHandlerLF implements ServerInvocationHandler
-{
-   public static String CONTENT_TYPE = "test/testContentType";
-   public static String INVALID_CONTENT_TYPE_CR = "test/x" + '\r' + "y";
-   public static String INVALID_CONTENT_TYPE_LF = "test/x" + '\n' + "y";
-   public static String REQUEST = "testRequest";
-   public static String RESPONSE = "testResponse";
-   
-   public void addListener(InvokerCallbackHandler callbackHandler) {}
-   public Object invoke(final InvocationRequest invocation) throws Throwable
-   {
-      Map response = invocation.getReturnPayload();
-      if (response != null)
-      {
-         response.put("Content-Type", INVALID_CONTENT_TYPE_CR);
-      }
-      return RESPONSE;
-   }
-   public void removeListener(InvokerCallbackHandler callbackHandler) {}
-   public void setMBeanServer(MBeanServer server) {}
-   public void setInvoker(ServerInvoker invoker) {}
-}
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, 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.remoting.transport.servlet.contenttype;
+
+import java.util.Map;
+
+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-1101 unit tests.
+ * 
+ * @author <a href="ron.sigal at jboss.com">Ron Sigal</a>
+ * @version $Rev$
+ * <p>
+ * Copyright Sep 1, 2009
+ * </p>
+ */
+public class TestInvocationHandlerLF implements ServerInvocationHandler
+{
+   public static String CONTENT_TYPE = "test/testContentType";
+   public static String INVALID_CONTENT_TYPE_CR = "test/x" + '\r' + "y";
+   public static String INVALID_CONTENT_TYPE_LF = "test/x" + '\n' + "y";
+   public static String REQUEST = "testRequest";
+   public static String RESPONSE = "testResponse";
+   
+   public void addListener(InvokerCallbackHandler callbackHandler) {}
+   public Object invoke(final InvocationRequest invocation) throws Throwable
+   {
+      Map response = invocation.getReturnPayload();
+      if (response != null)
+      {
+         response.put("Content-Type", INVALID_CONTENT_TYPE_CR);
+      }
+      return RESPONSE;
+   }
+   public void removeListener(InvokerCallbackHandler callbackHandler) {}
+   public void setMBeanServer(MBeanServer server) {}
+   public void setInvoker(ServerInvoker invoker) {}
+}


Property changes on: remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/servlet/contenttype/TestInvocationHandlerLF.java
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/servlet/contenttype/TestInvocationHandlerOK.java
===================================================================
--- remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/servlet/contenttype/TestInvocationHandlerOK.java	2010-08-05 01:37:45 UTC (rev 6024)
+++ remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/servlet/contenttype/TestInvocationHandlerOK.java	2010-08-05 01:40:36 UTC (rev 6025)
@@ -1,64 +1,64 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2009, 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.remoting.transport.servlet.contenttype;
-
-import java.util.Map;
-
-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-1101 unit tests.
- * 
- * @author <a href="ron.sigal at jboss.com">Ron Sigal</a>
- * @version $Rev$
- * <p>
- * Copyright Sep 1, 2009
- * </p>
- */
-public class TestInvocationHandlerOK implements ServerInvocationHandler
-{
-   public static String CONTENT_TYPE = "test/testContentType";
-   public static String INVALID_CONTENT_TYPE_CR = "test/x" + '\r' + "y";
-   public static String INVALID_CONTENT_TYPE_LF = "test/x" + '\n' + "y";
-   public static String REQUEST = "testRequest";
-   public static String RESPONSE = "testResponse";
-   
-   public void addListener(InvokerCallbackHandler callbackHandler) {}
-   public Object invoke(final InvocationRequest invocation) throws Throwable
-   {
-      Map response = invocation.getReturnPayload();
-      if (response != null)
-      {
-         response.put("Content-Type", CONTENT_TYPE);
-      }
-      return RESPONSE;
-   }
-   public void removeListener(InvokerCallbackHandler callbackHandler) {}
-   public void setMBeanServer(MBeanServer server) {}
-   public void setInvoker(ServerInvoker invoker) {}
-}
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, 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.remoting.transport.servlet.contenttype;
+
+import java.util.Map;
+
+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-1101 unit tests.
+ * 
+ * @author <a href="ron.sigal at jboss.com">Ron Sigal</a>
+ * @version $Rev$
+ * <p>
+ * Copyright Sep 1, 2009
+ * </p>
+ */
+public class TestInvocationHandlerOK implements ServerInvocationHandler
+{
+   public static String CONTENT_TYPE = "test/testContentType";
+   public static String INVALID_CONTENT_TYPE_CR = "test/x" + '\r' + "y";
+   public static String INVALID_CONTENT_TYPE_LF = "test/x" + '\n' + "y";
+   public static String REQUEST = "testRequest";
+   public static String RESPONSE = "testResponse";
+   
+   public void addListener(InvokerCallbackHandler callbackHandler) {}
+   public Object invoke(final InvocationRequest invocation) throws Throwable
+   {
+      Map response = invocation.getReturnPayload();
+      if (response != null)
+      {
+         response.put("Content-Type", CONTENT_TYPE);
+      }
+      return RESPONSE;
+   }
+   public void removeListener(InvokerCallbackHandler callbackHandler) {}
+   public void setMBeanServer(MBeanServer server) {}
+   public void setInvoker(ServerInvoker invoker) {}
+}


Property changes on: remoting2/branches/2.2/src/tests/org/jboss/test/remoting/transport/servlet/contenttype/TestInvocationHandlerOK.java
___________________________________________________________________
Name: svn:eol-style
   + native



More information about the jboss-remoting-commits mailing list