KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sf > cglib > TestAll


1 /*
2  * Copyright 2002,2003,2004 The Apache Software Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package net.sf.cglib;
17
18 import junit.framework.*;
19 import net.sf.cglib.beans.*;
20 import net.sf.cglib.core.*;
21 import net.sf.cglib.proxy.*;
22 import net.sf.cglib.reflect.*;
23 import net.sf.cglib.transform.*;
24 import net.sf.cglib.transform.impl.*;
25 import net.sf.cglib.util.*;
26
27 /**
28  *@author Gerhard Froehlich <a HREF="mailto:g-froehlich@gmx.de">
29  * g-froehlich@gmx.de</a>
30  *@version $Id: TestAll.java,v 1.66 2004/12/23 03:46:25 herbyderby Exp $
31  */

32 public class TestAll extends TestCase {
33     
34     public static String JavaDoc DEFAULT_DEBUG_LOACATION = System.getProperty("user.home") +
35           System.getProperty("file.separator") + "cglib-debug";
36     
37     public TestAll(String JavaDoc testName) {
38         super(testName);
39     }
40
41     public static Test suite() throws Exception JavaDoc{
42        
43       
44         
45         System.getProperties().list(System.out);
46         TestSuite suite = new TestSuite();
47
48         //security
49

50         // proxy
51
suite.addTest(TestEnhancer.suite());
52         suite.addTest(TestProxy.suite());
53         suite.addTest(TestDispatcher.suite());
54         suite.addTest(TestProxyRefDispatcher.suite());
55         suite.addTest(TestLazyLoader.suite());
56         suite.addTest(TestNoOp.suite());
57         suite.addTest(TestMixin.suite());
58         suite.addTest(TestInterfaceMaker.suite());
59
60         // beans
61
suite.addTest(TestBulkBean.suite());
62         suite.addTest(TestBeanMap.suite());
63         suite.addTest(TestImmutableBean.suite());
64         suite.addTest(TestBeanCopier.suite());
65         suite.addTest(TestBeanGenerator.suite());
66         
67         // reflect
68
suite.addTest(TestDelegates.suite());
69         suite.addTest(TestFastClass.suite());
70
71         // core
72
suite.addTest(TestKeyFactory.suite());
73         suite.addTest(TestTinyBitSet.suite());
74         
75         // util
76
suite.addTest(TestParallelSorter.suite());
77
78         // transform
79
suite.addTest(TestTransformingLoader.suite());
80         suite.addTest(TestAddClassInit.suite());
81         suite.addTest(TestProvideFields.suite());
82         suite.addTest(TestAddDelegate.suite());
83         suite.addTest(TestInterceptFields.suite());
84         suite.addTest(TestDemo.suite());
85
86         // performance
87
// suite.addTest(TestReflectPerf.suite());
88
// suite.addTest(TestXmlParsing.suite());
89
return suite;
90     }
91
92     public static void main(String JavaDoc args[])throws Exception JavaDoc {
93         
94        
95         if(System.getProperty(DebuggingClassWriter.DEBUG_LOCATION_PROPERTY) == null){
96          System.setProperty(DebuggingClassWriter.DEBUG_LOCATION_PROPERTY,DEFAULT_DEBUG_LOACATION);
97         }
98         String JavaDoc[] testCaseName = {TestAll.class.getName()};
99         junit.textui.TestRunner.main(testCaseName);
100         
101      
102        
103     }
104 }
105
106
Popular Tags