@@ -0,0 +1,1883 @@
+/*%0A * Copyright (C) 2004-2005  exedio GmbH (www.exedio.com)%0A *%0A * This library is free software; you can redistribute it and/or%0A * modify it under the terms of the GNU Lesser General Public%0A * License as published by the Free Software Foundation; either%0A * version 2.1 of the License, or (at your option) any later version.%0A *%0A * This library is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU%0A * Lesser General Public License for more details.%0A *%0A * You should have received a copy of the GNU Lesser General Public%0A * License along with this library; if not, write to the Free Software%0A * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA%0A */%0A%0Apackage com.exedio.cope;%0A%0Aimport java.lang.reflect.InvocationTargetException;%0Aimport java.lang.reflect.Method;%0A%0Aimport junit.framework.Test;%0Aimport junit.framework.TestCase;%0Aimport junit.framework.TestSuite;%0A%0A/**%0A * Integrates test for dsmf and cope into a single test.%0A * Used for target copetest in projects with exedio-cope-test.jar.%0A * @author Ralf Wiebicke%0A */%0Apublic class CopeTest extends TestCase%0A%7B%0A%0A%09public static Test suite()%0A%09%7B%0A%09%09final TestSuite suite = new TestSuite();%0A%09%09try%0A%09%09%7B%0A%09%09%09final Class c = Class.forName(%22com.exedio.dsmf.PackageTest%22);%0A%09%09%09final Method m = c.getDeclaredMethod(%22suite%22, null);%0A%09%09%09final Test test = (Test)m.invoke(null, null);%0A%09%09%09suite.addTest(test);%0A%09%09%7D%0A%09%09catch(ClassNotFoundException e)%0A%09%09%7B%0A%09%09%09throw new RuntimeException(e);%0A%09%09%7D%0A%09%09catch(NoSuchMethodException e)%0A%09%09%7B%0A%09%09%09throw new RuntimeException(e);%0A%09%09%7D%0A%09%09catch(InvocationTargetException e)%0A%09%09%7B%0A%09%09%09throw new RuntimeException(e.getTargetException());%0A%09%09%7D%0A%09%09catch(IllegalAccessException e)%0A%09%09%7B%0A%09%09%09throw new RuntimeException(e);%0A%09%09%7D%0A%09%09suite.addTest( PackageTest.suite() );%0A%09%09return suite;%0A%09%7D%0A%0A%7D%0A

simplify target copetest