Package org.jboss.test.remoting.transport.web

Examples of org.jboss.test.remoting.transport.web.ComplexObject


         assertEquals(HTTPInvokerTestServer.RESPONSE_VALUE, response);

         // test with small object
         headerProps.put("Content-type", WebUtil.BINARY);
         response = remotingClient.invoke(new ComplexObject(2, "foo", true), metadata);

         assertEquals(org.jboss.test.remoting.transport.http.ssl.basic.HTTPSInvokerTestServer.OBJECT_RESPONSE_VALUE, response);

         // test with large object
         response = remotingClient.invoke(new ComplexObject(2, "foo", true, 8000), metadata);

         assertEquals(HTTPSInvokerTestServer.LARGE_OBJECT_RESPONSE_VALUE, response);

      }
      catch(Throwable throwable)
View Full Code Here


         assertEquals(HTTPInvokerTestServer.RESPONSE_VALUE, response);

         // test with small object
         headerProps.put("Content-type", WebUtil.BINARY);
         response = remotingClient.invoke(new ComplexObject(2, "foo", true), metadata);

         assertEquals(org.jboss.test.remoting.transport.http.ssl.basic.HTTPSInvokerTestServer.OBJECT_RESPONSE_VALUE, response);

         // test with large object
         response = remotingClient.invoke(new ComplexObject(2, "foo", true, 8000), metadata);

         assertEquals(HTTPSInvokerTestServer.LARGE_OBJECT_RESPONSE_VALUE, response);

      }
      catch(Throwable throwable)
View Full Code Here

         {
            return null;
         }
         else if(invocation.getParameter() instanceof ComplexObject)
         {
            ComplexObject obj = (ComplexObject) invocation.getParameter();
            if(obj.getSize() > 1024)
            {
               return LARGE_OBJECT_RESPONSE_VALUE;
            }
            else
            {
View Full Code Here

         assertEquals(HTTPInvokerTestServer.RESPONSE_VALUE, response);

         // test with small object
         headerProps.put("Content-type", WebUtil.BINARY);
         response = remotingClient.invoke(new ComplexObject(2, "foo", true), metadata);

         assertEquals(HTTPSInvokerTestServer.OBJECT_RESPONSE_VALUE, response);

         // test with large object
         response = remotingClient.invoke(new ComplexObject(2, "foo", true, 8000), metadata);

         assertEquals(HTTPSInvokerTestServer.LARGE_OBJECT_RESPONSE_VALUE, response);

      }
      catch(Throwable throwable)
View Full Code Here

         Map metadata = new HashMap();
         metadata.put("TYPE", "PUT");

         // test with null return expected
         Object response = remotingClient.invoke(new ComplexObject(2, "foo", true), metadata);
         System.out.println("response: " + response);
         if(response instanceof Exception)
         {
            ((Exception)response).printStackTrace();
         }
View Full Code Here

         {
            return null;
         }
         else if(invocation.getParameter() instanceof ComplexObject)
         {
            ComplexObject obj = (ComplexObject) invocation.getParameter();
            if(obj.getSize() > 1024)
            {
               return LARGE_OBJECT_RESPONSE_VALUE;
            }
            else
            {
View Full Code Here

         Map metadata = new HashMap();
         metadata.put("TYPE", "PUT");

         // test with null return expected
         Object response = remotingClient.invoke(new ComplexObject(2, "foo", true), metadata);
         System.out.println("response: " + response);
         if(response instanceof Exception)
         {
            ((Exception)response).printStackTrace();
         }
View Full Code Here

TOP

Related Classes of org.jboss.test.remoting.transport.web.ComplexObject

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.