Add integration test for handshaking with pending contact.

This commit is contained in:
akwizgran
2019-06-03 11:49:34 +01:00
parent 4640651714
commit 89cbdc824c
3 changed files with 75 additions and 19 deletions

View File

@@ -1,25 +0,0 @@
package org.briarproject.briar.test;
import org.briarproject.bramble.api.transport.StreamWriter;
import java.io.IOException;
import java.io.OutputStream;
class TestStreamWriter implements StreamWriter {
private final OutputStream out;
TestStreamWriter(OutputStream out) {
this.out = out;
}
@Override
public OutputStream getOutputStream() {
return out;
}
@Override
public void sendEndOfStream() throws IOException {
out.flush();
}
}