src.test.net.sf.cglib.TestAll Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of easymock Show documentation
Show all versions of easymock Show documentation
EasyMock provides an easy way to create Mock Objects for interfaces and classes generating them on the fly
/*
* Copyright 2002,2003,2004 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.easymock.cglib;
import junit.framework.*;
import org.easymock.cglib.beans.*;
import org.easymock.cglib.core.*;
import org.easymock.cglib.proxy.*;
import org.easymock.cglib.reflect.*;
import org.easymock.cglib.transform.*;
import org.easymock.cglib.transform.impl.*;
import org.easymock.cglib.util.*;
/**
*@author Gerhard Froehlich
* [email protected]
*@version $Id: TestAll.java,v 1.66 2004/12/23 03:46:25 herbyderby Exp $
*/
public class TestAll extends TestCase {
public static String DEFAULT_DEBUG_LOACATION = System.getProperty("user.home") +
System.getProperty("file.separator") + "cglib-debug";
public TestAll(String testName) {
super(testName);
}
public static Test suite() throws Exception{
System.getProperties().list(System.out);
TestSuite suite = new TestSuite();
//security
// proxy
suite.addTest(TestEnhancer.suite());
suite.addTest(TestProxy.suite());
suite.addTest(TestDispatcher.suite());
suite.addTest(TestProxyRefDispatcher.suite());
suite.addTest(TestLazyLoader.suite());
suite.addTest(TestNoOp.suite());
suite.addTest(TestMixin.suite());
suite.addTest(TestInterfaceMaker.suite());
// beans
suite.addTest(TestBulkBean.suite());
suite.addTest(TestBeanMap.suite());
suite.addTest(TestImmutableBean.suite());
suite.addTest(TestBeanCopier.suite());
suite.addTest(TestBeanGenerator.suite());
// reflect
suite.addTest(TestDelegates.suite());
suite.addTest(TestFastClass.suite());
// core
suite.addTest(TestKeyFactory.suite());
suite.addTest(TestTinyBitSet.suite());
// util
suite.addTest(TestParallelSorter.suite());
// transform
suite.addTest(TestTransformingLoader.suite());
suite.addTest(TestAddClassInit.suite());
suite.addTest(TestProvideFields.suite());
suite.addTest(TestAddDelegate.suite());
suite.addTest(TestInterceptFields.suite());
suite.addTest(TestDemo.suite());
// performance
// suite.addTest(TestReflectPerf.suite());
// suite.addTest(TestXmlParsing.suite());
return suite;
}
public static void main(String args[])throws Exception {
if(System.getProperty(DebuggingClassWriter.DEBUG_LOCATION_PROPERTY) == null){
System.setProperty(DebuggingClassWriter.DEBUG_LOCATION_PROPERTY,DEFAULT_DEBUG_LOACATION);
}
String[] testCaseName = {TestAll.class.getName()};
junit.textui.TestRunner.main(testCaseName);
}
}