From: Pieter v. Z. <pv...@us...> - 2005-08-10 08:22:40
|
Update of /cvsroot/coefficient/coefficient/src-test/za/org/coefficient/testing In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10072/src-test/za/org/coefficient/testing Added Files: CoefficientModulesTestSuite.java CoefficientCoreTestSuite.java CoefficientAllTestSuite.java Log Message: added some testSuites so that we can test the: core. the modules and everything in one test run. The modules test suite is not finished as it need to include the modules jar files. --- NEW FILE: CoefficientAllTestSuite.java --- /** * * * Coefficient - facilitates project based collaboration * Copyright (C) 2005, Meraka Insitute, Pieter van Zyl * PO Box 395 * Pretoria 0001, RSA * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package za.org.coefficient.testing; import junit.framework.Test; import junit.framework.TestSuite; /** * This TestSuite runs all the tests and test suites for the core and all the * modules. The Modules and the core jar files must be on the classpath. * * @author pieter20 Aug 8, 2005 */ public class CoefficientAllTestSuite { /** * Aug 8, 2005 * * @author pieter20 */ public CoefficientAllTestSuite() { super(); // TODO Auto-generated constructor stub } public static Test suite() { TestSuite allTestsTestSuite = new TestSuite(); allTestsTestSuite.addTest(CoefficientCoreTestSuite.suite()); allTestsTestSuite.addTest(CoefficientModulesTestSuite.suite()); // add in the rest of the modules test cases or test suites. return allTestsTestSuite; } /** * @author pieter20 Aug 8, 2005 * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub } } --- NEW FILE: CoefficientModulesTestSuite.java --- /** * * * Coefficient - facilitates project based collaboration * Copyright (C) 2005, Meraka Insitute, Pieter van Zyl * PO Box 395 * Pretoria 0001, RSA * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package za.org.coefficient.testing; import junit.framework.Test; import junit.framework.TestSuite; /** * Runs the tests of each of the modules * @author pieter20 Aug 8, 2005 */ public class CoefficientModulesTestSuite { /** * Aug 8, 2005 * * @author pieter20 */ public CoefficientModulesTestSuite() { super(); // TODO Auto-generated constructor stub } /** * TODO:for this to work the compiling of the tests will need to include * the modules jar files. Maybe create a seperate build: one for core test cases which excludes this class * and one for all test cases. Or use CruiseControl to run each of the test for the modules including the test for the core. * @author pieter20 * Aug 8, 2005 * * @return Test: the testSuite */ public static Test suite() { TestSuite modulesTestSuite = new TestSuite(); //modulesTestSuite.addTestSuite(MailForumTest.class); //add in the rest of the modules test cases or test suites. return modulesTestSuite; } /** * @author pieter20 Aug 8, 2005 * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub } } --- NEW FILE: CoefficientCoreTestSuite.java --- /** * * * Coefficient - facilitates project based collaboration * Copyright (C) 2005, Meraka Insitute, Pieter van Zyl * PO Box 395 * Pretoria 0001, RSA * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package za.org.coefficient.testing; import za.org.coefficient.authentication.ProjectMemberTest; import za.org.coefficient.core.ProjectTest; import junit.framework.Test; import junit.framework.TestSuite; import junit.swingui.TestRunner; /** * Runs all the tests for the Coefficient Core * @author pieter20 * Aug 8, 2005 * */ public class CoefficientCoreTestSuite { /** * Aug 8, 2005 * @author pieter20 */ public CoefficientCoreTestSuite() { super(); // TODO Auto-generated constructor stub } public static Test suite() { TestSuite coreTestSuite = new TestSuite(); coreTestSuite.addTestSuite(ProjectTest.class); coreTestSuite.addTestSuite(ProjectMemberTest.class); return coreTestSuite; } /** * @author pieter20 Aug 8, 2005 * @param args */ public static void main(String[] args) { //using the swingui //TestRunner.run(suite()); } } |