01: /*
02: * Copyright (c) 2002-2007 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.oscache.plugins.diskpersistence;
06:
07: import junit.framework.Test;
08: import junit.framework.TestCase;
09: import junit.framework.TestSuite;
10:
11: /**
12: * Test class for the com.opensymphony.oscache.plugins.diskpersistence package.
13: * It invokes all the test suites of all the other classes of the package.
14: *
15: * $Id: TestCompleteDiskPersistence.java 254 2005-06-17 05:07:38Z dres $
16: * @version $Revision: 254 $
17: * @author Lars Torunski
18: */
19: public final class TestCompleteDiskPersistence extends TestCase {
20: /**
21: * Constructor for the osCache Cache Extra package main test program
22: */
23: public TestCompleteDiskPersistence(String str) {
24: super (str);
25: }
26:
27: /**
28: * Main method which is called to perform the tests
29: * <p>
30: * @param args Arguments received
31: */
32: public static void main(String[] args) {
33: // Run the test suite
34: junit.swingui.TestRunner testRunner = new junit.swingui.TestRunner();
35: testRunner.setLoading(false);
36:
37: String[] args2 = { TestCompleteDiskPersistence.class.getName() };
38: testRunner.start(args2);
39: }
40:
41: /**
42: * Test suite required to test this project
43: * <p>
44: * @return suite The test suite
45: */
46: public static Test suite() {
47: // Add all the test suites of all the project classes
48: TestSuite suite = new TestSuite(
49: "Test all diskpersistence plugins");
50: suite.addTest(TestDiskPersistenceListener.suite());
51: suite.addTest(TestHashDiskPersistenceListener.suite());
52: //suite.addTest(TestUnSerializable.suite());
53:
54: return suite;
55: }
56: }
|