View Javadoc
1 /* 2 Java Regular Expressions Plugin API 3 4 Copyright (C) 2002 Jose San Leandro Armend?riz 5 jsanleandro@yahoo.es 6 chousz@yahoo.com 7 8 This library is free software; you can redistribute it and/or 9 modify it under the terms of the GNU Lesser General Public 10 License as published by the Free Software Foundation; either 11 version 2.1 of the License, or (at your option) any later version. 12 13 This library is distributed in the hope that it will be useful, 14 but WITHOUT ANY WARRANTY; without even the implied warranty of 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 Lesser General Public License for more details. 17 18 You should have received a copy of the GNU Lesser General Public 19 License along with this library; if not, write to the Free Software 20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 21 22 23 Thanks to ACM S.L. for distributing this library under the LGPL license. 24 Contact info: jsr000@terra.es 25 Postal Address: c/Playa de Lagoa, 1 26 Urb. Valdecaba?as 27 Boadilla del monte 28 28660 Madrid 29 Spain 30 31 This library uses an external API to retrieve version information at 32 runtime. 33 So far I haven't released such API as a project itself, but you should be 34 able to download it from the web page where you got this source code. 35 36 ****************************************************************************** 37 * 38 * Filename: $RCSfile: RegexppluginSuite.java,v $ 39 * 40 * Author: Jose San Leandro Armend?riz 41 * 42 * Description: Is a collection of Regexpplugin-related JUnit tests. 43 * 44 * Last modified by: $Author: chous $ at $Date: 2003/06/21 21:07:26 $ 45 * 46 * File version: $Revision: 1.3 $ 47 * 48 * Project version: $Name: $ 49 * ("Name" means no concrete version has been checked out) 50 * 51 * $Id: RegexppluginSuite.java,v 1.3 2003/06/21 21:07:26 chous Exp $ 52 * 53 */ 54 package unittests.org.acmsl.regexpplugin; 55 56 /* 57 * Importing project-specific classes. 58 */ 59 import unittests.org.acmsl.regexpplugin.CompilerTest; 60 import unittests.org.acmsl.regexpplugin.HelperTest; 61 import unittests.org.acmsl.regexpplugin.RegexpManagerTest; 62 63 /* 64 * Importing some ACM classes. 65 */ 66 import org.acmsl.version.Version; 67 import org.acmsl.version.VersionFactory; 68 69 /*** 70 * Importing JUnit classes 71 */ 72 import junit.framework.Test; 73 import junit.framework.TestSuite; 74 import junit.swingui.TestRunner; 75 76 /*** 77 * Is a collection of Regexpplugin-related JUnit tests. 78 * @testfamily JUnit 79 * @testkind testsuite 80 * @testsetup Default TestSuite 81 * @testpackage org.acm.regexpplugin 82 * @author <a href="mailto:jsanleandro@yahoo.es" 83 >Jose San Leandro Armend?riz</a> 84 * @version $Revision: 1.3 $ 85 */ 86 public abstract class RegexppluginSuite 87 extends TestSuite 88 implements org.acmsl.patterns.Test 89 { 90 /*** 91 * Default constructor. 92 */ 93 public RegexppluginSuite() 94 { 95 addTest(suite()); 96 } 97 98 /*** 99 * Executes the tests from command line. 100 * @param args the command-line arguments. Not needed so far. 101 */ 102 public static void main(String[] args) 103 { 104 TestRunner.run(RegexppluginSuite.class); 105 } 106 107 /*** 108 * Retrieves the set of tests included in this suite. 109 * @return the test collection. 110 */ 111 public static Test suite() 112 { 113 TestSuite result = new TestSuite("Regexpplugin test Suite"); 114 115 result.addTestSuite(RegexpManagerTest.class); 116 result.addTestSuite(CompilerTest.class); 117 result.addTestSuite(HelperTest.class); 118 119 return result; 120 } 121 122 /*** 123 * Concrete version object updated everytime it's checked-in in a CVS 124 * repository. 125 */ 126 public static final Version VERSION = 127 VersionFactory.createVersion("$Revision: 1.3 $"); 128 129 /*** 130 * Retrieves the current version of this object. 131 * @return the version object with such information. 132 */ 133 public Version getVersion() 134 { 135 return VERSION; 136 } 137 138 /*** 139 * Retrieves the current version of this class. It's defined because 140 * this is a utility class that cannot be instantiated. 141 * @return the object with class version information. 142 */ 143 public static Version getClassVersion() 144 { 145 return VERSION; 146 } 147 }

This page was automatically generated by Maven