Ejemplo n.º 1
0
        public void testCallClientFromClientThrowEx()
        {
            log.info("testCallClientFromClientThrowEx(");


            BSkeleton_ClientIF partner = new MyClientIF_throwEx();

            BClient_Testser client2 = TestUtilsHttp.createClient();

            client2.addRemote(partner);

            client.ServerIF.SetPartner(partner);

            ClientIF partnerIF = client.ServerIF.GetPartner();

            try
            {
                partnerIF.IncrementInt(7);
            }
            catch (BException e)
            {
                TestUtils.assertEquals(log, "exception", exceptionCode, e.Code);
            }
            log.info(")testCallClientFromClientThrowEx");
        }
Ejemplo n.º 2
0
        public void testPutStreamFromClientToClient()
        {
            log.info("testPutStreamFromClientToClient(");

            // Interface implementation for the second client
            BSkeleton_ClientIF partner = new ClientIF_putStreams();

            // Create second client
            BClient_Testser client2 = TestUtilsHttp.createClient();

            client2.addRemote(partner);

            // Pass the interface of the second client to the server side of the first client
            client.ServerIF.SetPartner(partner);

            // First client queries the interface of the second client from the server side
            ClientIF partnerIF = client.ServerIF.GetPartner();

            for (int i = 0; i < 1; i++)
            {
                log.info("call client...");
                IList <Stream> arr = TestUtilsHttp.makeTestStreams();
                partnerIF.PutStreams(arr, 0);
                log.info("call client OK");
            }

            client2.done();

            log.info(")testPutStreamFromClientToClient");
        }
        public void setUp()
        {
            BClient_Testser client1 = TestUtilsHttp.createClient();

            client1.RemoteWithAuthentication.SetUseAuthentication(true);
            client1.done();

            client = TestUtilsHttp.createClient();
            remote = client.RemoteWithAuthentication;
        }
Ejemplo n.º 4
0
        public void testCallClientFromClient()
        {
            log.info("testCallClientFromClient(");

            BSkeleton_ClientIF partner = new MyClientIF_withIncrementInt();

            BClient_Testser client2 = TestUtilsHttp.createClient();

            client2.addRemote(partner);

            client.ServerIF.SetPartner(partner);

            ClientIF partnerIF = client.ServerIF.GetPartner();
            int      r         = partnerIF.IncrementInt(7);

            TestUtils.assertEquals(log, "incrementInt", 8, r);

            log.info(")testCallClientFromClient");
        }
Ejemplo n.º 5
0
        public void testReturnStreamFromClientToClient()
        {
            log.info("testReturnStreamFromClientToClient(");

            // Interface implementation for the second client
            BSkeleton_ClientIF partner = new MyClientIF_getStreams();

            // Create second client
            BClient_Testser client2 = TestUtilsHttp.createClient();

            client2.addRemote(partner);

            // Pass the interface of the second client to the server side of the first client
            client.ServerIF.SetPartner(partner);

            // First client queries the interface of the second client from the server side
            ClientIF partnerIF = client.ServerIF.GetPartner();

            log.info("call client...");
            IList <Stream> arrR = partnerIF.GetStreams(0);

            log.info("call client OK");

            List <Stream> arr = TestUtilsHttp.makeTestStreams();

            TestUtils.assertEquals(log, "streams.length", arr.Count, arrR.Count);
            for (int i = 0; i < arr.Count; i++)
            {
                TestUtils.assertEquals(log, "stream[" + i + "]", arr[i], arrR[i]);
            }

            client2.done();


            log.info(")testReturnStreamFromClientToClient");
        }
Ejemplo n.º 6
0
 public void setUp()
 {
     client = TestUtilsHttp.createClient(BWireFlags.GZIP);
     remote = client.RemoteMapTypes;
 }
Ejemplo n.º 7
0
 public void setUp()
 {
     client = TestUtilsHttp.createClient();
     remote = client.ServerIF;
 }
Ejemplo n.º 8
0
 public void setUp()
 {
     client = TestUtilsHttp.createClient();
     remote = client.RemoteStreams;
 }
Ejemplo n.º 9
0
 public void setUp()
 {
     client = TestUtilsHttp.createClient();
     remote = client.RemotePrimitiveTypes;
 }
Ejemplo n.º 10
0
 public void setUp()
 {
     client = TestUtilsHttp.createClient();
 }