View Javadoc
1 /* 2 * Scope: a generic MVC framework. 3 * Copyright (c) 2000-2002, The Scope team 4 * All rights reserved. 5 * 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 11 * Redistributions of source code must retain the above copyright 12 * notice, this list of conditions and the following disclaimer. 13 * 14 * Redistributions in binary form must reproduce the above copyright 15 * notice, this list of conditions and the following disclaimer in the 16 * documentation and/or other materials provided with the distribution. 17 * 18 * Neither the name "Scope" nor the names of its contributors 19 * may be used to endorse or promote products derived from this software 20 * without specific prior written permission. 21 * 22 * 23 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 24 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 25 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 26 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR 27 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 28 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 29 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 30 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 31 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 32 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 33 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 34 * 35 * 36 * $Id: SuiteScope.java,v 1.6 2002/09/09 17:54:34 ludovicc Exp $ 37 */ 38 package test; 39 40 import org.apache.commons.logging.Log; 41 import org.apache.commons.logging.LogFactory; 42 43 import junit.framework.Test; 44 import junit.framework.TestCase; 45 import junit.framework.TestSuite; 46 47 /*** 48 * <P> 49 * 50 * </P> 51 * 52 * @author <A HREF="mailto:smeyfroi@users.sourceforge.net">Steve Meyfroidt</A> 53 * @created 06 September 2002 54 * @version $Revision: 1.6 $ $Date: 2002/09/09 17:54:34 $ 55 */ 56 public final class SuiteScope extends TestCase { 57 58 private static final Log LOG = LogFactory.getLog(SuiteScope.class); 59 60 61 /*** 62 * Constructor for the SuiteScope object 63 * 64 * @param inName TODO: Describe the Parameter 65 */ 66 public SuiteScope(String inName) { 67 super(inName); 68 } 69 70 71 /*** 72 * A unit test suite for JUnit 73 * 74 * @return The test suite 75 */ 76 public static Test suite() { 77 // // assertion failures are expected during the test run but don't want to see them 78 // Category.getRoot().removeAppender("stdout"); 79 80 TestSuite suite = new TestSuite(); 81 suite.addTest(test.util.convertor.SuiteConvertor.suite()); 82 suite.addTest(test.view.servlet.xml.SuiteViewServletXML.suite()); 83 suite.addTest(test.util.SuiteUtil.suite()); 84 suite.addTest(test.core.SuiteCore.suite()); 85 suite.addTest(test.controller.basic.SuiteControllerBasic.suite()); 86 suite.addTest(test.controller.servlet.SuiteControllerServlet.suite()); 87 suite.addTest(test.controller.swing.SuiteControllerSwing.suite()); 88 suite.addTest(test.model.util.SuiteModelUtil.suite()); 89 suite.addTest(test.model.beans.SuiteModelBeans.suite()); 90 suite.addTest(test.model.basic.SuiteModelBasic.suite()); 91 suite.addTest(test.model.collection.SuiteModelCollection.suite()); 92 suite.addTest(test.view.util.SuiteViewUtil.suite()); 93 suite.addTest(test.view.servlet.SuiteViewServlet.suite()); 94 suite.addTest(test.view.awt.SuiteViewAWT.suite()); 95 suite.addTest(test.view.swing.SuiteViewSwing.suite()); 96 return suite; 97 } 98 99 100 /*** 101 * The main program for the SuiteScope class 102 * 103 * @param args The command line arguments 104 */ 105 public static void main(String[] args) { 106 junit.swingui.TestRunner.run(SuiteScope.class); 107 } 108 109 110 /*** 111 * The JUnit setup method 112 */ 113 protected void setUp() { } 114 }

This page was automatically generated by Maven