tx.close();
}
@Test
public void testScribeMultipleMessages() throws Exception {
TTransport transport = new TFramedTransport(new TSocket("localhost", port));
TProtocol protocol = new TBinaryProtocol(transport);
Scribe.Client client = new Scribe.Client(protocol);
transport.open();
List<LogEntry> logEntries = new ArrayList<LogEntry>(10);
for (int i = 0; i < 10; i++) {
LogEntry logEntry = new LogEntry("INFO", String.format("Sending info msg# %d to scribe source", i));
logEntries.add(logEntry);