Package org.apache.sshd.util

Examples of org.apache.sshd.util.BogusChannel


public class ChannelPipedInputStreamTest extends BaseTest {

    @Test
    public void testAvailable() throws Exception {
        Window window = new Window(new BogusChannel(), null, true, true);
        ChannelPipedInputStream stream = new ChannelPipedInputStream(window);

        byte[] b = "test".getBytes();
        stream.receive(b, 0, b.length);
        assertEquals(b.length, stream.available());
View Full Code Here


public class ChannelPipedInputStreamTest {

    @Test
    public void testAvailable() throws Exception {
        Window window = new Window(new BogusChannel(), null, true, true);
        ChannelPipedInputStream stream = new ChannelPipedInputStream(window);

        byte[] b = "test".getBytes();
        stream.receive(b, 0, b.length);
        assertEquals(b.length, stream.available());
View Full Code Here

TOP

Related Classes of org.apache.sshd.util.BogusChannel

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.