Package org.jboss.test.remoting

Examples of org.jboss.test.remoting.ComplexReturn


                "\tsessionId: " + sessionId + "\tsubsystem:" + subsystem);
      //deprecated since specific to JMX (old way of handling callbacks)
      if(methodName.equals("testComplexReturn"))
      {
         //Need to send back complex object containing array of complext objects.
         ComplexReturn ret = new ComplexReturn();
         return ret;
      }
      if(methodName.equals("testMarshalledObject"))
      {
         ComplexReturn ret = new ComplexReturn();
         MarshalledObject mObj = new MarshalledObject(ret);
         return mObj;
      }
      else if(methodName.equals("test"))
      {
View Full Code Here


      Method invokeMethod = clientClz.getMethod("invoke", new Class[]{Object.class, Map.class});
      ret = invokeMethod.invoke(clientInstance, new Object[]{nbinv, null});


      ComplexReturn complexRet = (ComplexReturn) ret;
      MockTest[] mockTests = complexRet.getMockTests();
      assertTrue("ComplexReturn's array should contain 2 items",
                 2 == mockTests.length);
      if(2 == mockTests.length)
      {
         log.debug("PASS");
View Full Code Here

    */
   public void testArrayReturn() throws Throwable
   {
      // simple invoke, should return bar
      Object ret = makeInvocation("testComplexReturn", null);
      ComplexReturn complexRet = (ComplexReturn) ret;
      MockTest[] mockTests = complexRet.getMockTests();
      assertTrue("ComplexReturn's array should contain 2 items",
                 2 == mockTests.length);
      if(2 == mockTests.length)
      {
         log.debug("PASS");
View Full Code Here

   public void runArrayReturn() throws Throwable
   {
      // simple invoke, should return bar
      Object ret = makeInvocation("testComplexReturn", null);
      ComplexReturn complexRet = (ComplexReturn) ret;
      MockTest[] mockTests = complexRet.getMockTests();
      assertTrue("ComplexReturn's array should contain 2 items",
                 2 == mockTests.length);
      for(int x = 0; x < mockTests.length; x++)
      {
         System.err.println(mockTests[x]);
View Full Code Here

   public void runMarshalledObjectReturn() throws Throwable
   {
      // simple invoke, should return bar
      Object ret = makeInvocation("testMarshalledObject", null);
      ret = ((MarshalledObject) ret).get();
      ComplexReturn complexRet = (ComplexReturn) ret;
      MockTest[] mockTests = complexRet.getMockTests();
      assertTrue("ComplexReturn's array should contain 2 items",
                 2 == mockTests.length);
      for(int x = 0; x < mockTests.length; x++)
      {
         System.err.println(mockTests[x]);
View Full Code Here

      Method invokeMethod = clientClz.getMethod("invoke", new Class[]{Object.class, Map.class});
      ret = invokeMethod.invoke(clientInstance, new Object[]{nbinv, null});


      ComplexReturn complexRet = (ComplexReturn) ret;
      MockTest[] mockTests = complexRet.getMockTests();
      assertTrue("ComplexReturn's array should contain 2 items",
                 2 == mockTests.length);
      if(2 == mockTests.length)
      {
         log.debug("PASS");
View Full Code Here

                "\tsessionId: " + sessionId + "\tsubsystem:" + subsystem);
      //deprecated since specific to JMX (old way of handling callbacks)
      if(methodName.equals("testComplexReturn"))
      {
         //Need to send back complex object containing array of complext objects.
         ComplexReturn ret = new ComplexReturn();
         return ret;
      }
      if(methodName.equals("testMarshalledObject"))
      {
         ComplexReturn ret = new ComplexReturn();
         MarshalledObject mObj = new MarshalledObject(ret);
         return mObj;
      }
      else if(methodName.equals("test"))
      {
View Full Code Here

    */
   public void testArrayReturn() throws Throwable
   {
      // simple invoke, should return bar
      Object ret = makeInvocation("testComplexReturn", null);
      ComplexReturn complexRet = (ComplexReturn) ret;
      MockTest[] mockTests = complexRet.getMockTests();
      assertTrue("ComplexReturn's array should contain 2 items",
                 2 == mockTests.length);
      for(int x = 0; x < mockTests.length; x++)
      {
         System.err.println(mockTests[x]);
View Full Code Here

   public void testMarshalledObjectReturn() throws Throwable
   {
      // simple invoke, should return bar
      Object ret = makeInvocation("testMarshalledObject", null);
      ret = ((MarshalledObject) ret).get();
      ComplexReturn complexRet = (ComplexReturn) ret;
      MockTest[] mockTests = complexRet.getMockTests();
      assertTrue("ComplexReturn's array should contain 2 items",
                 2 == mockTests.length);
      for(int x = 0; x < mockTests.length; x++)
      {
         System.err.println(mockTests[x]);
View Full Code Here

    */
   public void testArrayReturn() throws Throwable
   {
      // simple invoke, should return bar
      Object ret = makeInvocation("testComplexReturn", null);
      ComplexReturn complexRet = (ComplexReturn) ret;
      MockTest[] mockTests = complexRet.getMockTests();
      assertTrue("ComplexReturn's array should contain 2 items",
                 2 == mockTests.length);
      if(2 == mockTests.length)
      {
         log.debug("PASS");
View Full Code Here

TOP

Related Classes of org.jboss.test.remoting.ComplexReturn

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.