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;
05:
06: import com.tc.net.EphemeralPorts.Range;
07:
08: import junit.framework.TestCase;
09:
10: public class EphemeralPortsTest extends TestCase {
11:
12: public void test() {
13: Range range = EphemeralPorts.getRange();
14: System.out.println(range);
15: assertTrue("lower is " + range.getLower(),
16: range.getLower() >= 1024);
17: assertTrue("upper is " + range.getUpper(),
18: range.getUpper() <= 65535);
19: }
20:
21: }
|