public void testRemoteListTypes() {
		    log.info("testRemoteListTypes(");
		
		    ListTypes obj = new ListTypes();
            obj.Boolean1 = new List<bool>(new bool[] { true, false });
		    obj.Byte1 = new List<byte>(new byte[] {(byte)1,(byte)2,(byte)3 });
		    obj.Char1 = new List<char>(new char [] {'a', 'b'});
            obj.Double1 = new List<double>(new double[] { 0.0, 0.1, 0.2 });
            obj.Float1 = new List<float>(new float[] { 1f, 2f, 3f, 4f });
            obj.Int1 = new List<int>(new int[] { 1, 2, 3, 4, 5 });
            obj.Long1 = new List<long>(new long[] { 1L, 2L, 3L, 4L, 5L, 6L });
		    obj.PrimitiveTypes1 = new List<PrimitiveTypes>(new PrimitiveTypes[] { TestUtils.createObjectPrimitiveTypes() });
		    obj.Short1 = new List<short>(new short[] {(short)1});
		    obj.String1 = new List<String>(new String[] {"a", "b", "c"});
            obj.Date1 = new List<DateTime>(new DateTime[] { new DateTime(), new DateTime(1999, 11, 22, 23, 33, 33, 333) });
		    obj.Obj1 = new List<Object>();
		    obj.Obj1.Add(TestUtils.createObjectPrimitiveTypes());
		
		    remote.SetBoolean1(obj.Boolean1);
		    TestUtils.assertEquals(log, "boolean1", obj.Boolean1, remote.GetBoolean1());
		    remote.SetByte1(obj.Byte1);
		    TestUtils.assertEquals(log, "byte1", obj.Byte1, remote.GetByte1());
		    remote.SetChar1(obj.Char1);
		    TestUtils.assertEquals(log, "char1", obj.Char1, remote.GetChar1());
		    remote.SetDouble1(obj.Double1);
		    TestUtils.assertEquals(log, "double1", obj.Double1, remote.GetDouble1());
		    remote.SetFloat1(obj.Float1);
		    TestUtils.assertEquals(log, "float1", obj.Float1, remote.GetFloat1());
		    remote.SetInt1(obj.Int1);
		    TestUtils.assertEquals(log, "int1", obj.Int1, remote.GetInt1());
		    remote.SetLong1(obj.Long1);
		    TestUtils.assertEquals(log, "long1", obj.Long1, remote.GetLong1());
		    remote.SetPrimitiveTypes1(obj.PrimitiveTypes1);
		    TestUtils.assertEquals(log, "primitiveTypes1", obj.PrimitiveTypes1, remote.GetPrimitiveTypes1());
		    remote.SetShort1(obj.Short1);
		    TestUtils.assertEquals(log, "short1", obj.Short1, remote.GetShort1());
            remote.SetString1(obj.String1);
            TestUtils.assertEquals(log, "string1", obj.String1, remote.GetString1());
            remote.SetDate1(obj.Date1);
            TestUtils.assertEquals(log, "date1", obj.Date1, remote.GetDate1());
            remote.SetObj1(obj.Obj1);
		    TestUtils.assertEquals(log, "obj1", obj.Obj1, remote.GetObj1());
		
		    log.info(")testRemoteListTypes");
	    }
Exemple #2
0
 public ListTypes(ListTypes rhs)
 {
     this.boolean1Value        = rhs.boolean1Value;
     this.byte1Value           = rhs.byte1Value;
     this.char1Value           = rhs.char1Value;
     this.short1Value          = rhs.short1Value;
     this.int1Value            = rhs.int1Value;
     this.long1Value           = rhs.long1Value;
     this.float1Value          = rhs.float1Value;
     this.double1Value         = rhs.double1Value;
     this.string1Value         = rhs.string1Value;
     this.date1Value           = rhs.date1Value;
     this.primitiveTypes1Value = rhs.primitiveTypes1Value;
     this.byte2Value           = rhs.byte2Value;
     this.int2Value            = rhs.int2Value;
     this.int4Value            = rhs.int4Value;
     this.obj1Value            = rhs.obj1Value;
 }
Exemple #3
0
		public ListTypes(ListTypes rhs)
		{
			this.boolean1Value = rhs.boolean1Value;
			this.byte1Value = rhs.byte1Value;
			this.char1Value = rhs.char1Value;
			this.short1Value = rhs.short1Value;
			this.int1Value = rhs.int1Value;
			this.long1Value = rhs.long1Value;
			this.float1Value = rhs.float1Value;
			this.double1Value = rhs.double1Value;
			this.string1Value = rhs.string1Value;
			this.date1Value = rhs.date1Value;
			this.primitiveTypes1Value = rhs.primitiveTypes1Value;
			this.byte2Value = rhs.byte2Value;
			this.int2Value = rhs.int2Value;
			this.int4Value = rhs.int4Value;
			this.obj1Value = rhs.obj1Value;
		}		
Exemple #4
0
        public override Object read(Object obj1, BInput bin1, long version)
        {
            BInputBin bin = (BInputBin)bin1;
            ListTypes obj = (ListTypes)(obj1 != null ? obj1 : bin.onObjectCreated(new ListTypes()));

            BBufferBin bbuf = bin.bbuf;

            // checkpoint byps.gen.cs.PrintContext:449
            obj.Boolean1 = (IList <bool>)bin.readObj(false, null);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.Byte1 = (IList <byte>)bin.readObj(false, null);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.Byte2 = (IList <byte[]>)bin.readObj(false, null);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.Char1 = (IList <char>)bin.readObj(false, null);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.Date1 = (IList <DateTime>)bin.readObj(false, null);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.Double1 = (IList <double>)bin.readObj(false, null);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.Float1 = (IList <float>)bin.readObj(false, null);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.Int1 = (IList <int>)bin.readObj(false, null);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.Int2 = (IList <int[]>)bin.readObj(false, null);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.Int4 = (IList <int[, , , ]>)bin.readObj(false, null);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.Long1 = (IList <long>)bin.readObj(false, null);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.Obj1 = (IList <Object>)bin.readObj(false, null);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.PrimitiveTypes1 = (IList <byps.test.api.prim.PrimitiveTypes>)bin.readObj(false, null);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.Short1 = (IList <short>)bin.readObj(false, null);
            // checkpoint byps.gen.cs.PrintContext:449
            obj.String1 = (IList <String>)bin.readObj(false, null);

            return(obj);
        }
Exemple #5
0
        public override void write(Object obj1, BOutput bout1, long version)
        {
            ListTypes  obj  = (ListTypes)obj1;
            BOutputBin bout = (BOutputBin)bout1;
            BBufferBin bbuf = bout.bbuf;

            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Boolean1, false, byps.test.api.BSerializer_1617670280.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Byte1, false, byps.test.api.BSerializer_1059148284.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Byte2, false, byps.test.api.BSerializer_1174971318.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Char1, false, byps.test.api.BSerializer_1661807911.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Date1, false, byps.test.api.BSerializer_1504867122.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Double1, false, byps.test.api.BSerializer_1555345627.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Float1, false, byps.test.api.BSerializer_1628501332.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Int1, false, byps.test.api.BSerializer_181681714.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Int2, false, byps.test.api.BSerializer_1752158699.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Int4, false, byps.test.api.BSerializer_1088217157.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Long1, false, byps.test.api.BSerializer_1050216688.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Obj1, false, byps.BSerializer_12.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.PrimitiveTypes1, false, byps.test.api.BSerializer_1596367810.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.Short1, false, byps.test.api.BSerializer_1997002548.instance);
            // checkpoint byps.gen.cs.PrintContext:494
            bout.writeObj(obj.String1, false, byps.test.api.BSerializer_2123584667.instance);
        }