01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package com.tc.net.protocol.transport;
06:
07: import com.tc.net.core.TCConnection;
08:
09: import java.util.List;
10:
11: public class MockMessageTransportFactory implements
12: MessageTransportFactory {
13:
14: public MessageTransport transport;
15: public int callCount;
16:
17: public MessageTransport createNewTransport() {
18: callCount++;
19: return transport;
20: }
21:
22: public MessageTransport createNewTransport(
23: ConnectionID connectionID,
24: TransportHandshakeErrorHandler handler,
25: TransportHandshakeMessageFactory handshakeMessageFactory,
26: List transportListeners) {
27: callCount++;
28: return transport;
29: }
30:
31: public MessageTransport createNewTransport(
32: ConnectionID connectionId, TCConnection connection,
33: TransportHandshakeErrorHandler handler,
34: TransportHandshakeMessageFactory handshakeMessageFactory,
35: List transportListeners) {
36: callCount++;
37: return transport;
38: }
39: }
|