01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.net.protocol.transport;
05:
06: import junit.framework.TestCase;
07:
08: public class ConnectionPolicyTest extends TestCase {
09: private ConnectionPolicy policy;
10:
11: public void tests() throws Exception {
12: policy = new ConnectionPolicyImpl(1);
13:
14: policy.clientConnected();
15: assertFalse(policy.maxConnectionsExceeded());
16: }
17: }
|