boolean framed, boolean header) throws TException{
TTransport transport;
TSocket socket = new TSocket("localhost", TEST_PORT);
socket.setTimeout(1000);
transport = socket;
TProtocol prot = new TBinaryProtocol(transport);
if (unframed) {
testClient(transport, prot); // Unframed
}
List<THeaderTransport.ClientTypes> clientTypes =
new ArrayList<THeaderTransport.ClientTypes>();
prot = new THeaderProtocol(transport, clientTypes);
if (header) {
testClient(transport, prot); // Header w/compact
}
TFramedTransport framedTransport = new TFramedTransport(transport);
prot = new TBinaryProtocol(framedTransport);
if (framed) {
testClient(transport, prot); // Framed
}
}