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: import com.tc.net.protocol.IllegalReconnectException;
09: import com.tc.net.protocol.NetworkStackHarness;
10:
11: public class MockNetworkStackHarness implements NetworkStackHarness {
12: public boolean wasAttachNewConnectionCalled = false;
13: public boolean wasFinalizeStackCalled = false;
14:
15: public MessageTransport attachNewConnection(TCConnection connection)
16: throws IllegalReconnectException {
17: this .wasAttachNewConnectionCalled = true;
18: return null;
19: }
20:
21: public void finalizeStack() {
22: this .wasFinalizeStackCalled = true;
23: }
24:
25: }
|