package net.sf.expectit;

import java.io.InputStream;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.CountDownLatch;

/**
 * Created by agavrilov on 02/07/14.
 */
public class MockInputStream {
    private final InputStream stream;
    private final BlockingQueue<String> queue;
    private final CountDownLatch latch;

    public MockInputStream(InputStream stream, BlockingQueue<String> queue, CountDownLatch latch) {
        this.stream = stream;
        this.queue = queue;
        this.latch = latch;
    }

    public InputStream getStream() {
        return stream;
    }

    public void push(String data) throws InterruptedException {
        queue.put(data);
    }

    public void waitUntilReady() throws InterruptedException {
        latch.await();
    }
}

@@ -146,40 +146,66 @@
 %0A * 
-Created by agavrilov on 02/07/14
+A mock object which provides control over the input stream
 .%0A *
@@ -367,23 +367,16 @@
 h;%0A%0A    
-public 
 MockInpu

Add missing javadoc