Package gnu.testlet.org.omg.CORBA_2_3.ORB

Examples of gnu.testlet.org.omg.CORBA_2_3.ORB.ValueTypeTest


        // Create the test 1 servant and register it with the ORB.
        comServant tester = new comServant();
        orb.connect(tester);

        // Create the test 2 servant and register it with the ORB.
        GreetingsServant tester2 = new GreetingsServant();
        orb.connect(tester2);

        // Storing the IOR references.
        IORs [ 0 ] = orb.object_to_string(tester);
        IORs [ 1 ] = orb.object_to_string(tester2);
View Full Code Here


            a[i].c = "c" + i;
          }
        harness.check("null:100 2 c1:200 2 c2:300 2 c3:",
          r.passStructureArray(a), "Structure array");

        Info i1 = new InfoImpl();
        i1._message = "m1";
        i1._name = "n1";
        Info i2 = new InfoImpl();
        i2._message = "m2";
        i2._name = "n2";

        harness.check("n1--m1:null:n2--m2:",
          r.passCorbaValueTypeArray(new Info[] { i1, null, i2 }),
View Full Code Here

          {
            return passCorbaValueType(arg0);
          }
        try
          {
            Info arg0Copy = (Info) Util.copyObject(arg0, _orb());
            return ((RMI_test) so.servant).passCorbaValueType(arg0Copy);
          }
        catch (Throwable ex)
          {
            Throwable exCopy = (Throwable) Util.copyObject(ex, _orb());
View Full Code Here

                  out.write_value(result, String.class);
                  return out;
                }
              else if (method.equals("passCorbaValueType"))
                {
                  Info arg0 = (Info) in.read_value(Info.class);
                  String result = target.passCorbaValueType(arg0);
                  org.omg.CORBA_2_3.portable.OutputStream out = (org.omg.CORBA_2_3.portable.OutputStream) reply.createReply();
                  out.write_value(result, String.class);
                  return out;
                }
View Full Code Here

        c1.message = "msg";
        c1.name = "nm";

        harness.check(r.passCorbaCMValueType(c1), "nm;msg", "CustomMarshal");

        InfoImpl c2 = new InfoImpl();
        c2._message = "_msg";
        c2._name = "_nm";

        harness.check(r.passCorbaValueType(c2), "_nm--_msg", "Streamable");

        myStructure[] a = new myStructure[4];

        // First element will be null.
        for (int i = 1; i < a.length; i++)
          {
            a[i] = new myStructure();
            a[i].a = 100 * i;
            a[i].c = "c" + i;
          }
        harness.check("null:100 2 c1:200 2 c2:300 2 c3:",
          r.passStructureArray(a), "Structure array");

        Info i1 = new InfoImpl();
        i1._message = "m1";
        i1._name = "n1";
        Info i2 = new InfoImpl();
        i2._message = "m2";
        i2._name = "n2";

        harness.check("n1--m1:null:n2--m2:",
          r.passCorbaValueTypeArray(new Info[] { i1, null, i2 }),
View Full Code Here

          {
            return passCorbaCMValueType(arg0);
          }
        try
          {
            cmInfo arg0Copy = (cmInfo) Util.copyObject(arg0, _orb());
            return ((RMI_test) so.servant).passCorbaCMValueType(arg0Copy);
          }
        catch (Throwable ex)
          {
            Throwable exCopy = (Throwable) Util.copyObject(ex, _orb());
View Full Code Here

                  return out;
                }
            case 20:
              if (method.equals("passCorbaCMValueType"))
                {
                  cmInfo arg0 = (cmInfo) in.read_value(cmInfo.class);
                  String result = target.passCorbaCMValueType(arg0);
                  org.omg.CORBA_2_3.portable.OutputStream out = (org.omg.CORBA_2_3.portable.OutputStream) reply.createReply();
                  out.write_value(result, String.class);
                  return out;
                }
View Full Code Here

          "Passing String array");

        harness.check("1 2 three", r.passStructure(new myStructure()),
          "Passing structure");

        cmInfoImpl c1 = new cmInfoImpl();
        c1.message = "msg";
        c1.name = "nm";

        harness.check(r.passCorbaCMValueType(c1), "nm;msg", "CustomMarshal");
View Full Code Here

TOP

Related Classes of gnu.testlet.org.omg.CORBA_2_3.ORB.ValueTypeTest

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.