Beispiel #1
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;
        }
Beispiel #3
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");
        }
Beispiel #4
0
 public void tearDown()
 {
     client.done();
 }