Package org.cloudfoundry.client.lib.archive.ApplicationArchive

Examples of org.cloudfoundry.client.lib.archive.ApplicationArchive.Entry


        assertThat(digestString, is("677e1b9bca206d6534054348511bf41129744839"));
    }

    @Test
    public void shouldBeAbleToGetInputStreamTwice() throws Exception {
        Entry entry = archiveEntries.get("index.html");
        ByteArrayOutputStream s1 = new ByteArrayOutputStream();
        FileCopyUtils.copy(entry.getInputStream(), s1);
        ByteArrayOutputStream s2 = new ByteArrayOutputStream();
        FileCopyUtils.copy(entry.getInputStream(), s2);
        assertThat(s1.toByteArray().length, is(93));
        assertThat(s2.toByteArray().length, is(93));
        assertThat(s1.toByteArray(), is(equalTo(s2.toByteArray())));
    }
View Full Code Here

TOP

Related Classes of org.cloudfoundry.client.lib.archive.ApplicationArchive.Entry

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.