public class LiveDataClientTestUtils {
public static DistributedLiveDataClient getInMemoryConduitClient(StandardLiveDataServer server) {
ByteArrayFudgeRequestSender subscriptionRequestSender = getSubscriptionRequestSender(server);
ByteArrayFudgeRequestSender entitlementRequestSender = getEntitlementRequestSender(server);
DistributedLiveDataClient liveDataClient = new DistributedLiveDataClient(subscriptionRequestSender, entitlementRequestSender);
FudgeSenderFactory factory = new FudgeSenderFactory(
new ByteArrayFudgeMessageSender(
new DirectInvocationByteArrayMessageSender(
new ByteArrayFudgeMessageReceiver(liveDataClient))));
server.setMarketDataSenderFactory(factory);
liveDataClient.setFudgeContext(liveDataClient.getFudgeContext());
return liveDataClient;
}