1 5 package com.opensymphony.oscache.base.algorithm; 6 7 import junit.framework.Test; 8 import junit.framework.TestCase; 9 import junit.framework.TestSuite; 10 11 20 public final class TestCompleteAlgorithm extends TestCase { 21 24 public TestCompleteAlgorithm(String str) { 25 super(str); 26 } 27 28 33 public static void main(String [] args) { 34 junit.swingui.TestRunner testRunner = new junit.swingui.TestRunner(); 36 testRunner.setLoading(false); 37 38 String [] args2 = {TestCompleteAlgorithm.class.getName()}; 39 testRunner.start(args2); 40 } 41 42 47 public static Test suite() { 48 TestSuite suite = new TestSuite("Test all base algorithm cache modules"); 50 suite.addTest(TestFIFOCache.suite()); 51 suite.addTest(TestLRUCache.suite()); 52 suite.addTest(TestUnlimitedCache.suite()); 53 54 return suite; 55 } 56 } 57 | Popular Tags |