Get the outgoing connection number from the database.

This commit is contained in:
akwizgran
2011-09-28 19:26:57 +01:00
parent 2edb18aee0
commit c77b4e5b91

View File

@@ -99,8 +99,9 @@ public class BatchConnectionReadWriteTest extends TestCase {
ByteArrayOutputStream out = new ByteArrayOutputStream();
ConnectionWriterFactory connFactory =
alice.getInstance(ConnectionWriterFactory.class);
long connection = db.getConnectionNumber(contactId, transportId);
ConnectionWriter conn = connFactory.createConnectionWriter(out,
Long.MAX_VALUE, true, transportId, 0L, aliceSecret);
Long.MAX_VALUE, true, transportId, connection, aliceSecret);
ProtocolWriterFactory protoFactory =
alice.getInstance(ProtocolWriterFactory.class);
OutgoingBatchConnection batchOut = new OutgoingBatchConnection(conn, db,