KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > net > protocol > transport > ConnectionPolicyTest


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 junit.framework.TestCase;
7
8 public class ConnectionPolicyTest extends TestCase {
9   private ConnectionPolicy policy;
10   
11   public void tests() throws Exception JavaDoc {
12     policy = new ConnectionPolicyImpl(1);
13
14     policy.clientConnected();
15     assertFalse(policy.maxConnectionsExceeded());
16   }
17 }
18
Popular Tags