Ejemplo n.º 1
0
        public void testRemoteStreamsLargeStream()
        {
            if (!TestUtils.TEST_LARGE_STREAMS)
            {
                return;
            }
            log.info("testRemoteStreamsLargeStream(");

            long nbOfBytes = 0x100000000L;

            log.info("start upload");
            Stream istrm = new TestUtils.MyContentStream(nbOfBytes);

            remote.SetImage(istrm);

            log.info("start download");
            Stream istrmR = remote.GetImage();

            log.info("compare streams");
            istrm = new TestUtils.MyContentStream(nbOfBytes);
            TestUtils.assertEquals(log, "", istrm, istrmR);

            remote.SetImage(null);
            TestUtils.checkTempDirEmpty(client);

            log.info(")testRemoteStreamsLargeStream");
        }
Ejemplo n.º 2
0
        public void testRemoteStreamsLargeStream()
        {
            if (!TestUtils.TEST_LARGE_STREAMS) return;
            log.info("testRemoteStreamsLargeStream(");

            long nbOfBytes = 0x100000000L;

            log.info("start upload");
            Stream istrm = new TestUtils.MyContentStream(nbOfBytes);
            remote.SetImage(istrm);

            log.info("start download");
            Stream istrmR = remote.GetImage();

            log.info("compare streams");
            istrm = new TestUtils.MyContentStream(nbOfBytes);
            TestUtils.assertEquals(log, "", istrm, istrmR);

            remote.SetImage(null);
            TestUtils.checkTempDirEmpty(client);

            log.info(")testRemoteStreamsLargeStream");
        }