1 /*2 * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.3 */4 package com.tc.net.protocol.transport;5 6 import com.tc.exception.ImplementMe;7 import com.tc.net.protocol.NetworkStackHarness;8 import com.tc.net.protocol.NetworkStackHarnessFactory;9 import com.tc.net.protocol.tcm.MessageChannelInternal;10 import com.tc.net.protocol.tcm.ServerMessageChannelFactory;11 12 public class MockStackHarnessFactory implements NetworkStackHarnessFactory {13 public NetworkStackHarness harness;14 15 public NetworkStackHarness createServerHarness(ServerMessageChannelFactory channelFactory,16 MessageTransport transport,17 MessageTransportListener[] transportListeners) {18 return harness;19 }20 21 public NetworkStackHarness clientClientHarness(MessageTransportFactory transportFactory,22 MessageChannelInternal channel,23 MessageTransportListener[] transportListeners) {24 throw new ImplementMe();25 }26 27 }