webwork/src/test/webwork TestCaseSupport.java,NONE,1.1 WebWorkTestSuite.java,NONE,1.1

[email protected] Fri, 31 Oct 2003 23:17:03 -0800
Newsgroups gmane.comp.java.open-symphony.cvs
Message-ID <[email protected]>
Update of /cvsroot/opensymphony/webwork/src/test/webwork
In directory sc8-pr-cvs1:/tmp/cvs-serv25627/test/webwork

Added Files:
	TestCaseSupport.java WebWorkTestSuite.java 
Log Message:
Moved test classes to test tree


--- NEW FILE: TestCaseSupport.java ---
/*
 * WebWork, Web Application Framework
 *
 * Distributable under Apache license.
 * See terms of license at opensource.org
 */
package webwork;
import junit.framework.TestCase;
import junit.framework.TestResult;

/**
 * @author Maurice C. Parker ([email protected])
 */
public class TestCaseSupport extends TestCase {

	public TestCaseSupport(String testName) {
		super(testName);
	}

	public void run(TestResult testResult) {
		System.out.println("********* Now Running: " + this.getClass().getName() + " *********");
		super.run(testResult);
		System.out.println("********* Finished: " + this.getClass().getName() + " *********");
		System.out.println();
	}

	protected void fail(Exception e) {
		e.printStackTrace();
		fail(e.getMessage());
	}

}

--- NEW FILE: WebWorkTestSuite.java ---
/*
 * WebWork, Web Application Framework
 *
 * Distributable under Apache license.
 * See terms of license at opensource.org
 */
package webwork;

import webwork.action.standard.RedirectTestCase;
import webwork.util.ValueStackTestCase;
import webwork.view.taglib.LogicTagsTestCase;
import webwork.view.taglib.UrlTestCase;

import junit.framework.Test;
import junit.framework.TestSuite;
import junit.textui.TestRunner;

/**
 * @author Maurice C. Parker ([email protected])
 */
public class WebWorkTestSuite extends TestSuite {

	public static Test suite() {

		TestSuite suite = new TestSuite();

		suite.addTestSuite(LogicTagsTestCase.class);
		suite.addTestSuite(RedirectTestCase.class);
		suite.addTestSuite(UrlTestCase.class);
		suite.addTestSuite(ValueStackTestCase.class);

		return suite;

	}

	public static void main(String[] args) {
		TestRunner.run(WebWorkTestSuite.suite());
	}

}




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/