01: package org.shiftone.cache.util;
02:
03: import junit.framework.TestCase;
04:
05: /**
06: * @version $Revision: 1.2 $
07: * @author <a href="mailto:jeff@shiftone.org">Jeff Drost</a>
08: */
09: public class WeakSetTestCase extends TestCase {
10:
11: private static final Log LOG = new Log(WeakSetTestCase.class);
12:
13: public void testSet() throws Exception {
14:
15: WeakSet set = new WeakSet();
16:
17: for (int i = 0; i < 10000; i++) {
18: set.add("this is a test " + (i * 3));
19: Thread.sleep(10);
20: }
21: }
22: }
|