You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(16) |
Sep
(10) |
Oct
(1) |
Nov
(2) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(148) |
Feb
(80) |
Mar
(41) |
Apr
(85) |
May
(247) |
Jun
(345) |
Jul
(237) |
Aug
(241) |
Sep
(439) |
Oct
(321) |
Nov
(413) |
Dec
(302) |
2004 |
Jan
(143) |
Feb
(147) |
Mar
(200) |
Apr
(107) |
May
(15) |
Jun
(36) |
Jul
(11) |
Aug
(1) |
Sep
(36) |
Oct
|
Nov
(6) |
Dec
|
2005 |
Jan
|
Feb
|
Mar
|
Apr
(115) |
May
(74) |
Jun
(215) |
Jul
(82) |
Aug
(47) |
Sep
(32) |
Oct
(8) |
Nov
(70) |
Dec
(24) |
2006 |
Jan
|
Feb
(1) |
Mar
(4) |
Apr
(2) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2007 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2016 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <mr...@us...> - 2003-01-08 05:59:41
|
Update of /cvsroot/struts/struts-resume/tools/strutsgen/src/org/example In directory sc8-pr-cvs1:/tmp/cvs-serv31717/example Log Message: Directory /cvsroot/struts/struts-resume/tools/strutsgen/src/org/example added to the repository |
From: <mr...@us...> - 2003-01-08 05:59:37
|
Update of /cvsroot/struts/struts-resume/tools/strutsgen/src In directory sc8-pr-cvs1:/tmp/cvs-serv31688 Added Files: FormKeys.xdt StrutsForm_jsp.xdt Log Message: --- NEW FILE: FormKeys.xdt --- <XDtTagDef:tagDef namespace="Struts" handler="org.example.antbook.xdoclet.FormTagsHandler"/> <XDtStruts:forAllFields> <XDtClass:classTagValue tagName="struts.form" paramName="name"/>.<XDtStruts:fieldName/>=<XDtStruts:fieldDescription/> </XDtStruts:forAllFields> --- NEW FILE: StrutsForm_jsp.xdt --- <XDtTagDef:tagDef namespace="Struts" handler="org.example.antbook.xdoclet.FormTagsHandler"/> <%@ include file="/common/taglibs.jsp"%> <html:form action="" method="post" styleId="<XDtClass:classTagValue tagName="struts.form" paramName="name"/>" focus="" onsubmit="return validate<XDtClass:className/>(this)"> <table> <XDtStruts:forAllFields> <tr> <th> <label for="<XDtStruts:fieldName/>"> <bean:message key="<XDtClass:classTagValue tagName="struts.form" paramName="name"/>.<XDtStruts:fieldName/>"/> </label> </th> <td> <html:text property="<XDtStruts:fieldName/>" styleId="<XDtStruts:fieldName/>"/> </td> </tr> </XDtStruts:forAllFields> </table> <html:cancel styleClass="button" property="action" onclick="bCancel=true"> <bean:message key="button.cancel"/> </html:cancel> <html:submit styleClass="button" property="action" onclick="bCancel=false"> <bean:message key="button.save"/> </html:submit> </html:form> <html:javascript formName="<XDtClass:classTagValue tagName="struts.form" paramName="name"/>" dynamicJavascript="true" staticJavascript="false"/> <script type="text/javascript" src="<html:rewrite page="/scripts/validator.jsp"/>"></script> |
From: <mr...@us...> - 2003-01-08 05:59:31
|
Update of /cvsroot/struts/struts-resume/tools/strutsgen/src/org In directory sc8-pr-cvs1:/tmp/cvs-serv31667/org Log Message: Directory /cvsroot/struts/struts-resume/tools/strutsgen/src/org added to the repository |
From: <mr...@us...> - 2003-01-08 05:58:09
|
Update of /cvsroot/struts/struts-resume/tools/strutsgen/build/org In directory sc8-pr-cvs1:/tmp/cvs-serv31409/org Log Message: Directory /cvsroot/struts/struts-resume/tools/strutsgen/build/org added to the repository |
From: <mr...@us...> - 2003-01-08 05:58:04
|
Update of /cvsroot/struts/struts-resume/tools/strutsgen In directory sc8-pr-cvs1:/tmp/cvs-serv31371 Added Files: build.xml Log Message: --- NEW FILE: build.xml --- <project name="strutsgen" default="default"> <property file="${user.home}/${ant.project.name}-build.properties"/> <property file="${user.home}/build.properties"/> <property file="../../build.properties"/> <property name="lib.dir" location="../../lib"/> <property file="${lib.dir}/lib.properties"/> <path id="xdoclet.classpath"> <pathelement location="${log4j.jar}"/> <pathelement location="${commons-logging.jar}"/> <pathelement location="${commons-collections.jar}"/> <pathelement location="${struts.jar}"/> <pathelement location="${j2ee.jar}"/> <fileset dir="${xdoclet.dir}" includes="*.jar"/> </path> <property name="struts.src.dir" location="../../build/web/gen"/> <!-- <property name="struts.src.dir" location="../../src/web"/> --> <target name="init"> <mkdir dir="${build.dir}"/> </target> <target name="clean"> <delete dir="${build.dir}"/> </target> <target name="compile" depends="init"> <mkdir dir="${build.dir}"/> <javac srcdir="src" destdir="${build.dir}" debug="${javac.debug}" classpathref="xdoclet.classpath" /> </target> <target name="gen" depends="compile"> <property name="form.name" value="**Form" /> <taskdef name="xdoclet" classname="xdoclet.DocletTask"> <classpath> <path refid="xdoclet.classpath"/> <pathelement location="${build.dir}"/> </classpath> </taskdef> <xdoclet destdir="${build.dir}" excludedtags="@version,@author" force="${xdoclet.force}"> <fileset dir="${struts.src.dir}" includes="**/${form.name}.java" /> <template templateFile="src/FormKeys.xdt" acceptAbstractClasses="false" prefixWithPackageStructure="false" destinationFile="{0}.properties" /> <template templateFile="src/StrutsForm_jsp.xdt" acceptAbstractClasses="false" prefixWithPackageStructure="false" destinationFile="{0}.jsp" /> </xdoclet> </target> <!-- For some reason, XDoclet is only happy if the tag handler is recompiled, hence the clean dependency *shrug* --> <target name="default" depends="clean,gen"/> </project> |
From: <mr...@us...> - 2003-01-08 05:57:57
|
Update of /cvsroot/struts/struts-resume/tools/strutsgen/src In directory sc8-pr-cvs1:/tmp/cvs-serv31313/src Log Message: Directory /cvsroot/struts/struts-resume/tools/strutsgen/src added to the repository |
From: <mr...@us...> - 2003-01-08 05:57:57
|
Update of /cvsroot/struts/struts-resume/tools/strutsgen/build In directory sc8-pr-cvs1:/tmp/cvs-serv31313/build Log Message: Directory /cvsroot/struts/struts-resume/tools/strutsgen/build added to the repository |
From: <mr...@us...> - 2003-01-08 05:57:50
|
Update of /cvsroot/struts/struts-resume/tools/strutsgen In directory sc8-pr-cvs1:/tmp/cvs-serv31295/strutsgen Log Message: Directory /cvsroot/struts/struts-resume/tools/strutsgen added to the repository |
From: <mr...@us...> - 2003-01-08 05:57:46
|
Update of /cvsroot/struts/struts-resume/test/web/org/appfuse/webapp/util In directory sc8-pr-cvs1:/tmp/cvs-serv31267 Added Files: BaseUtilTest.java RequestUtilTest.java SslUtilTest.java UtilSuite.java Log Message: --- NEW FILE: BaseUtilTest.java --- package org.appfuse.webapp.util; import junit.framework.TestCase; // JUnitDoclet begin import import org.appfuse.webapp.util.BaseUtil; // JUnitDoclet end import /** * Generated by JUnitDoclet, a tool provided by * ObjectFab GmbH under LGPL. * Please see www.junitdoclet.org, www.gnu.org * and www.objectfab.de for informations about * the tool, the licence and the authors. */ public class BaseUtilTest // JUnitDoclet begin extends_implements extends TestCase // JUnitDoclet end extends_implements { // JUnitDoclet begin class org.appfuse.webapp.util.BaseUtil baseutil = null; // JUnitDoclet end class public BaseUtilTest(String name) { // JUnitDoclet begin method BaseUtilTest super(name); // JUnitDoclet end method BaseUtilTest } public org.appfuse.webapp.util.BaseUtil createInstance() throws Exception { // JUnitDoclet begin method testcase.createInstance return new org.appfuse.webapp.util.BaseUtil(); // JUnitDoclet end method testcase.createInstance } protected void setUp() throws Exception { // JUnitDoclet begin method testcase.setUp super.setUp(); baseutil = createInstance(); // JUnitDoclet end method testcase.setUp } protected void tearDown() throws Exception { // JUnitDoclet begin method testcase.tearDown baseutil = null; super.tearDown(); // JUnitDoclet end method testcase.tearDown } /** * JUnitDoclet moves marker to this method, if there is not match * for them in the regenerated code and if the marker is not empty. * This way, no test gets lost when regenerating after renaming. * Method testVault is supposed to be empty. */ public void testVault() throws Exception { // JUnitDoclet begin method testcase.testVault // JUnitDoclet end method testcase.testVault } public static void main(String[] args) { // JUnitDoclet begin method testcase.main junit.textui.TestRunner.run(BaseUtilTest.class); // JUnitDoclet end method testcase.main } } --- NEW FILE: RequestUtilTest.java --- package org.appfuse.webapp.util; import junit.framework.TestCase; // JUnitDoclet begin import import org.appfuse.webapp.util.RequestUtil; // JUnitDoclet end import /** * Generated by JUnitDoclet, a tool provided by * ObjectFab GmbH under LGPL. * Please see www.junitdoclet.org, www.gnu.org * and www.objectfab.de for informations about * the tool, the licence and the authors. */ public class RequestUtilTest // JUnitDoclet begin extends_implements extends TestCase // JUnitDoclet end extends_implements { // JUnitDoclet begin class org.appfuse.webapp.util.RequestUtil requestutil = null; // JUnitDoclet end class public RequestUtilTest(String name) { // JUnitDoclet begin method RequestUtilTest super(name); // JUnitDoclet end method RequestUtilTest } public org.appfuse.webapp.util.RequestUtil createInstance() throws Exception { // JUnitDoclet begin method testcase.createInstance return new org.appfuse.webapp.util.RequestUtil(); // JUnitDoclet end method testcase.createInstance } protected void setUp() throws Exception { // JUnitDoclet begin method testcase.setUp super.setUp(); requestutil = createInstance(); // JUnitDoclet end method testcase.setUp } protected void tearDown() throws Exception { // JUnitDoclet begin method testcase.tearDown requestutil = null; super.tearDown(); // JUnitDoclet end method testcase.tearDown } public void testGetRequestParameters() throws Exception { // JUnitDoclet begin method getRequestParameters // JUnitDoclet end method getRequestParameters } public void testCreateQueryStringFromMap() throws Exception { // JUnitDoclet begin method createQueryStringFromMap // JUnitDoclet end method createQueryStringFromMap } public void testStowRequestAttributes() throws Exception { // JUnitDoclet begin method stowRequestAttributes // JUnitDoclet end method stowRequestAttributes } public void testReclaimRequestAttributes() throws Exception { // JUnitDoclet begin method reclaimRequestAttributes // JUnitDoclet end method reclaimRequestAttributes } public void testGetCookie() throws Exception { // JUnitDoclet begin method getCookie // JUnitDoclet end method getCookie } public void testDeleteCookie() throws Exception { // JUnitDoclet begin method deleteCookie // JUnitDoclet end method deleteCookie } /** * JUnitDoclet moves marker to this method, if there is not match * for them in the regenerated code and if the marker is not empty. * This way, no test gets lost when regenerating after renaming. * Method testVault is supposed to be empty. */ public void testVault() throws Exception { // JUnitDoclet begin method testcase.testVault // JUnitDoclet end method testcase.testVault } public static void main(String[] args) { // JUnitDoclet begin method testcase.main junit.textui.TestRunner.run(RequestUtilTest.class); // JUnitDoclet end method testcase.main } } --- NEW FILE: SslUtilTest.java --- package org.appfuse.webapp.util; import junit.framework.TestCase; // JUnitDoclet begin import import org.appfuse.webapp.util.SslUtil; // JUnitDoclet end import /** * Generated by JUnitDoclet, a tool provided by * ObjectFab GmbH under LGPL. * Please see www.junitdoclet.org, www.gnu.org * and www.objectfab.de for informations about * the tool, the licence and the authors. */ public class SslUtilTest // JUnitDoclet begin extends_implements extends TestCase // JUnitDoclet end extends_implements { // JUnitDoclet begin class org.appfuse.webapp.util.SslUtil sslutil = null; // JUnitDoclet end class public SslUtilTest(String name) { // JUnitDoclet begin method SslUtilTest super(name); // JUnitDoclet end method SslUtilTest } public org.appfuse.webapp.util.SslUtil createInstance() throws Exception { // JUnitDoclet begin method testcase.createInstance return new org.appfuse.webapp.util.SslUtil(); // JUnitDoclet end method testcase.createInstance } protected void setUp() throws Exception { // JUnitDoclet begin method testcase.setUp super.setUp(); sslutil = createInstance(); // JUnitDoclet end method testcase.setUp } protected void tearDown() throws Exception { // JUnitDoclet begin method testcase.tearDown sslutil = null; super.tearDown(); // JUnitDoclet end method testcase.tearDown } public void testGetRedirectString() throws Exception { // JUnitDoclet begin method getRedirectString // JUnitDoclet end method getRedirectString } /** * JUnitDoclet moves marker to this method, if there is not match * for them in the regenerated code and if the marker is not empty. * This way, no test gets lost when regenerating after renaming. * Method testVault is supposed to be empty. */ public void testVault() throws Exception { // JUnitDoclet begin method testcase.testVault // JUnitDoclet end method testcase.testVault } public static void main(String[] args) { // JUnitDoclet begin method testcase.main junit.textui.TestRunner.run(SslUtilTest.class); // JUnitDoclet end method testcase.main } } --- NEW FILE: UtilSuite.java --- package org.appfuse.webapp.util; import junit.framework.TestSuite; // JUnitDoclet begin import // JUnitDoclet end import /** * Generated by JUnitDoclet, a tool provided by * ObjectFab GmbH under LGPL. * Please see www.junitdoclet.org, www.gnu.org * and www.objectfab.de for informations about * the tool, the licence and the authors. */ public class UtilSuite // JUnitDoclet begin extends_implements // JUnitDoclet end extends_implements { // JUnitDoclet begin class // JUnitDoclet end class public static TestSuite suite() { TestSuite suite; suite = new TestSuite("org.appfuse.webapp.util"); suite.addTestSuite(org.appfuse.webapp.util.SslUtilTest.class); suite.addTestSuite(org.appfuse.webapp.util.RequestUtilTest.class); suite.addTestSuite(org.appfuse.webapp.util.BaseUtilTest.class); // JUnitDoclet begin method suite // JUnitDoclet end method suite return suite; } public static void main(String[] args) { // JUnitDoclet begin method testsuite.main junit.textui.TestRunner.run(suite()); // JUnitDoclet end method testsuite.main } } |
From: <mr...@us...> - 2003-01-08 05:57:27
|
Update of /cvsroot/struts/struts-resume/test/web/org/appfuse/webapp/taglib In directory sc8-pr-cvs1:/tmp/cvs-serv31206 Added Files: SecureTest.java TaglibSuite.java Log Message: --- NEW FILE: SecureTest.java --- package org.appfuse.webapp.taglib; import junit.framework.TestCase; // JUnitDoclet begin import import org.appfuse.webapp.taglib.Secure; // JUnitDoclet end import /** * Generated by JUnitDoclet, a tool provided by * ObjectFab GmbH under LGPL. * Please see www.junitdoclet.org, www.gnu.org * and www.objectfab.de for informations about * the tool, the licence and the authors. */ public class SecureTest // JUnitDoclet begin extends_implements extends TestCase // JUnitDoclet end extends_implements { // JUnitDoclet begin class org.appfuse.webapp.taglib.Secure secure = null; // JUnitDoclet end class public SecureTest(String name) { // JUnitDoclet begin method SecureTest super(name); // JUnitDoclet end method SecureTest } public org.appfuse.webapp.taglib.Secure createInstance() throws Exception { // JUnitDoclet begin method testcase.createInstance return new org.appfuse.webapp.taglib.Secure(); // JUnitDoclet end method testcase.createInstance } protected void setUp() throws Exception { // JUnitDoclet begin method testcase.setUp super.setUp(); secure = createInstance(); // JUnitDoclet end method testcase.setUp } protected void tearDown() throws Exception { // JUnitDoclet begin method testcase.tearDown secure = null; super.tearDown(); // JUnitDoclet end method testcase.tearDown } public void testSetMode() throws Exception { // JUnitDoclet begin method setMode // JUnitDoclet end method setMode } public void testDoStartTag() throws Exception { // JUnitDoclet begin method doStartTag // JUnitDoclet end method doStartTag } public void testDoAfterBody() throws Exception { // JUnitDoclet begin method doAfterBody // JUnitDoclet end method doAfterBody } public void testDoEndTag() throws Exception { // JUnitDoclet begin method doEndTag // JUnitDoclet end method doEndTag } /** * JUnitDoclet moves marker to this method, if there is not match * for them in the regenerated code and if the marker is not empty. * This way, no test gets lost when regenerating after renaming. * Method testVault is supposed to be empty. */ public void testVault() throws Exception { // JUnitDoclet begin method testcase.testVault // JUnitDoclet end method testcase.testVault } public static void main(String[] args) { // JUnitDoclet begin method testcase.main junit.textui.TestRunner.run(SecureTest.class); // JUnitDoclet end method testcase.main } } --- NEW FILE: TaglibSuite.java --- package org.appfuse.webapp.taglib; import junit.framework.TestSuite; // JUnitDoclet begin import // JUnitDoclet end import /** * Generated by JUnitDoclet, a tool provided by * ObjectFab GmbH under LGPL. * Please see www.junitdoclet.org, www.gnu.org * and www.objectfab.de for informations about * the tool, the licence and the authors. */ public class TaglibSuite // JUnitDoclet begin extends_implements // JUnitDoclet end extends_implements { // JUnitDoclet begin class // JUnitDoclet end class public static TestSuite suite() { TestSuite suite; suite = new TestSuite("org.appfuse.webapp.taglib"); suite.addTestSuite(org.appfuse.webapp.taglib.SecureTest.class); // JUnitDoclet begin method suite // JUnitDoclet end method suite return suite; } public static void main(String[] args) { // JUnitDoclet begin method testsuite.main junit.textui.TestRunner.run(suite()); // JUnitDoclet end method testsuite.main } } |
From: <mr...@us...> - 2003-01-08 05:57:16
|
Update of /cvsroot/struts/struts-resume/test/web/org/appfuse/webapp/service In directory sc8-pr-cvs1:/tmp/cvs-serv31135 Added Files: ResumeManagerTest.java ServiceSuite.java UserManagerTest.java Log Message: --- NEW FILE: ResumeManagerTest.java --- package org.appfuse.webapp.service; import java.util.ArrayList; import junit.framework.TestCase; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.appfuse.common.Constants; import org.appfuse.webapp.form.ResumeForm; // JUnitDoclet end import /** * Generated by JUnitDoclet, a tool provided by * ObjectFab GmbH under LGPL. * Please see www.junitdoclet.org, www.gnu.org * and www.objectfab.de for informations about * the tool, the licence and the authors. */ public class ResumeManagerTest // JUnitDoclet begin extends_implements extends TestCase // JUnitDoclet end extends_implements { // JUnitDoclet begin class private ResumeManager mgr = null; private Log log = LogFactory.getLog(ResumeManagerTest.class); private ResumeForm resumeForm; // JUnitDoclet end class public ResumeManagerTest(String name) { // JUnitDoclet begin method ResumeManagerTest super(name); // JUnitDoclet end method ResumeManagerTest } public ResumeManager createInstance() throws Exception { // JUnitDoclet begin method testcase.createInstance return new ResumeManagerImpl(Constants.DAO_TYPE_HIBERNATE); // JUnitDoclet end method testcase.createInstance } protected void setUp() throws Exception { // JUnitDoclet begin method testcase.setUp super.setUp(); mgr = createInstance(); // JUnitDoclet end method testcase.setUp } protected void tearDown() throws Exception { // JUnitDoclet begin method testcase.tearDown mgr = null; super.tearDown(); // JUnitDoclet end method testcase.tearDown } public void testGetResumesForUser() throws Exception { // JUnitDoclet begin method getResumesForUser ArrayList resumeForms = mgr.getResumesForUser("1"); log.debug(resumeForms); assertTrue(resumeForms.size() > 0); // JUnitDoclet end method getResumesForUser } public void testGetResume() throws Exception { // JUnitDoclet begin method getResumesForUser resumeForm = mgr.getResume("1"); log.debug(resumeForm); assertTrue(resumeForm.getName() != null); // JUnitDoclet end method getResumesForUser } public void testSaveResume() throws Exception { // JUnitDoclet begin method saveResume resumeForm = mgr.getResume("1"); String original = resumeForm.getDescription(); resumeForm.setDescription("UPDATED description"); resumeForm = mgr.saveResume(resumeForm); assertTrue(resumeForm.getDescription().equals("UPDATED description")); // set to original value and save resumeForm.setDescription(original); mgr.saveResume(resumeForm); // JUnitDoclet end method saveResume } public void testAddAndRemoveResume() throws Exception { // JUnitDoclet begin method removeResume resumeForm = new ResumeForm(); resumeForm.setDescription("description"); resumeForm.setName("simple test"); resumeForm.setObjective("objective"); resumeForm.setUserId("1"); resumeForm = mgr.saveResume(resumeForm); assertTrue(resumeForm.getName().equals("simple test")); assertTrue(resumeForm.getId() != null); log.debug("removing resumeForm..."); mgr.removeResume(resumeForm); // JUnitDoclet end method removeResume } /** * JUnitDoclet moves marker to this method, if there is not match * for them in the regenerated code and if the marker is not empty. * This way, no test gets lost when regenerating after renaming. * Method testVault is supposed to be empty. */ public void testVault() throws Exception { // JUnitDoclet begin method testcase.testVault // JUnitDoclet end method testcase.testVault } public static void main(String[] args) { // JUnitDoclet begin method testcase.main junit.textui.TestRunner.run(ResumeManagerTest.class); // JUnitDoclet end method testcase.main } } --- NEW FILE: ServiceSuite.java --- package org.appfuse.webapp.service; import junit.framework.TestSuite; // JUnitDoclet begin import // JUnitDoclet end import /** * Generated by JUnitDoclet, a tool provided by * ObjectFab GmbH under LGPL. * Please see www.junitdoclet.org, www.gnu.org * and www.objectfab.de for informations about * the tool, the licence and the authors. */ public class ServiceSuite // JUnitDoclet begin extends_implements // JUnitDoclet end extends_implements { // JUnitDoclet begin class // JUnitDoclet end class public static TestSuite suite() { TestSuite suite; suite = new TestSuite("org.appfuse.webapp.service"); suite.addTestSuite(org.appfuse.webapp.service.UserManagerTest.class); suite.addTestSuite(org.appfuse.webapp.service.ResumeManagerTest.class); // JUnitDoclet begin method suite // JUnitDoclet end method suite return suite; } public static void main(String[] args) { // JUnitDoclet begin method testsuite.main junit.textui.TestRunner.run(suite()); // JUnitDoclet end method testsuite.main } } --- NEW FILE: UserManagerTest.java --- package org.appfuse.webapp.service; import junit.framework.TestCase; //JUnitDoclet begin import import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.appfuse.common.Constants; import org.appfuse.webapp.form.UserForm; // JUnitDoclet end import /** * Generated by JUnitDoclet, a tool provided by * ObjectFab GmbH under LGPL. * Please see www.junitdoclet.org, www.gnu.org * and www.objectfab.de for informations about * the tool, the licence and the authors. */ public class UserManagerTest //JUnitDoclet begin extends_implements extends TestCase //JUnitDoclet end extends_implements { // JUnitDoclet begin class private UserManager mgr = null; private Log log = LogFactory.getLog(UserManagerTest.class); private UserForm userForm; // JUnitDoclet end class public UserManagerTest(String name) { // JUnitDoclet begin method UserManagerTest super(name); // JUnitDoclet end method UserManagerTest } public UserManager createInstance() throws Exception { // JUnitDoclet begin method testcase.createInstance return new UserManagerImpl(Constants.DAO_TYPE_HIBERNATE); // JUnitDoclet end method testcase.createInstance } protected void setUp() throws Exception { // JUnitDoclet begin method testcase.setUp super.setUp(); mgr = createInstance(); // JUnitDoclet end method testcase.setUp } protected void tearDown() throws Exception { // JUnitDoclet begin method testcase.tearDown mgr = null; super.tearDown(); // JUnitDoclet end method testcase.tearDown } public void testGetUser() throws Exception { // JUnitDoclet begin method getUser userForm = mgr.getUser("tomcat"); log.debug(userForm); assertTrue(userForm != null); // JUnitDoclet end method getUser } public void testSaveUser() throws Exception { // JUnitDoclet begin method saveUser userForm = mgr.getUser("tomcat"); userForm.setPhoneNumber("303-555-1212"); log.debug("saving user with updated phone number: " + userForm); userForm = mgr.saveUser(userForm); assertTrue(userForm.getPhoneNumber().equals("303-555-1212")); // JUnitDoclet end method saveUser } public void testAddAndRemoveUser() throws Exception { // JUnitDoclet begin method removeUser userForm = new UserForm(); userForm.setAddress("23 16th Street"); userForm.setCity("Denver"); userForm.setCountry("USA"); userForm.setFirstName("John"); userForm.setLastName("Elway"); userForm.setPassword("broncos"); userForm.setPostalCode("80210"); userForm.setProvince("CO"); userForm.setUsername("john"); userForm = mgr.saveUser(userForm); assertTrue(userForm.getUsername().equals("john")); // now delete it log.debug("removing user..."); mgr.removeUser(userForm); // JUnitDoclet end method removeUser } /** * JUnitDoclet moves marker to this method, if there is not match * for them in the regenerated code and if the marker is not empty. * This way, no test gets lost when regenerating after renaming. * Method testVault is supposed to be empty. */ public void testVault() throws Exception { // JUnitDoclet begin method testcase.testVault // JUnitDoclet end method testcase.testVault } public static void main(String[] args) { // JUnitDoclet begin method testcase.main junit.textui.TestRunner.run(UserManagerTest.class); // JUnitDoclet end method testcase.main } } |
From: <mr...@us...> - 2003-01-08 05:57:03
|
Update of /cvsroot/struts/struts-resume/test/web/org/appfuse/webapp/filter In directory sc8-pr-cvs1:/tmp/cvs-serv30988 Added Files: ActionFilterTest.java BreadCrumbFilterTest.java FilterSuite.java Log Message: --- NEW FILE: ActionFilterTest.java --- package org.appfuse.webapp.filter; import org.apache.cactus.FilterTestCase; // JUnitDoclet end import /** * Generated by JUnitDoclet, a tool provided by ObjectFab GmbH under LGPL. * Please see www.junitdoclet.org, www.gnu.org and www.objectfab.de for * informations about the tool, the licence and the authors. */ public class ActionFilterTest extends FilterTestCase // JUnitDoclet end extends_implements { //~ Instance fields ======================================================== // JUnitDoclet begin class ActionFilter filter = null; //~ Constructors =========================================================== // JUnitDoclet end class public ActionFilterTest(String name) { // JUnitDoclet begin method ActionFilterTest super(name); // JUnitDoclet end method ActionFilterTest } //~ Methods ================================================================ public org.appfuse.webapp.filter.ActionFilter createInstance() throws Exception { // JUnitDoclet begin method testcase.createInstance return new ActionFilter(); // JUnitDoclet end method testcase.createInstance } protected void setUp() throws Exception { // JUnitDoclet begin method testcase.setUp super.setUp(); filter = createInstance(); // set initialization parameters config.setInitParameter("isSecure", "false"); filter.init(config); // JUnitDoclet end method testcase.setUp } protected void tearDown() throws Exception { // JUnitDoclet begin method testcase.tearDown filter = null; super.tearDown(); // JUnitDoclet end method testcase.tearDown } public void testInit() throws Exception { // JUnitDoclet begin method init assertTrue(config != null); assertEquals(config.getInitParameter("isSecure"), "false"); // JUnitDoclet end method init } public void testDestroy() throws Exception { // JUnitDoclet begin method destroy config = null; assertTrue(config == null); // JUnitDoclet end method destroy } public void testDoFilter() throws Exception { // JUnitDoclet begin method doFilter filter.doFilter(request, response, filterChain); // JUnitDoclet end method doFilter } /** * JUnitDoclet moves marker to this method, if there is not match for them * in the regenerated code and if the marker is not empty. This way, no * test gets lost when regenerating after renaming. Method testVault is * supposed to be empty. * * @throws Exception DOCUMENT ME! */ public void testVault() throws Exception { // JUnitDoclet begin method testcase.testVault // JUnitDoclet end method testcase.testVault } public static void main(String[] args) { // JUnitDoclet begin method testcase.main junit.textui.TestRunner.run(ActionFilterTest.class); // JUnitDoclet end method testcase.main } } --- NEW FILE: BreadCrumbFilterTest.java --- package org.appfuse.webapp.filter; import junit.framework.TestCase; // JUnitDoclet end import /** * Generated by JUnitDoclet, a tool provided by * ObjectFab GmbH under LGPL. * Please see www.junitdoclet.org, www.gnu.org * and www.objectfab.de for informations about * the tool, the licence and the authors. */ public class BreadCrumbFilterTest // JUnitDoclet begin extends_implements extends TestCase // JUnitDoclet end extends_implements { // JUnitDoclet begin class org.appfuse.webapp.filter.BreadCrumbFilter breadcrumbfilter = null; // JUnitDoclet end class public BreadCrumbFilterTest(String name) { // JUnitDoclet begin method BreadCrumbFilterTest super(name); // JUnitDoclet end method BreadCrumbFilterTest } public org.appfuse.webapp.filter.BreadCrumbFilter createInstance() throws Exception { // JUnitDoclet begin method testcase.createInstance return new org.appfuse.webapp.filter.BreadCrumbFilter(); // JUnitDoclet end method testcase.createInstance } protected void setUp() throws Exception { // JUnitDoclet begin method testcase.setUp super.setUp(); breadcrumbfilter = createInstance(); // JUnitDoclet end method testcase.setUp } protected void tearDown() throws Exception { // JUnitDoclet begin method testcase.tearDown breadcrumbfilter = null; super.tearDown(); // JUnitDoclet end method testcase.tearDown } public void testDoFilter() throws Exception { // JUnitDoclet begin method doFilter // JUnitDoclet end method doFilter } public void testInit() throws Exception { // JUnitDoclet begin method init // JUnitDoclet end method init } public void testDestroy() throws Exception { // JUnitDoclet begin method destroy // JUnitDoclet end method destroy } /** * JUnitDoclet moves marker to this method, if there is not match * for them in the regenerated code and if the marker is not empty. * This way, no test gets lost when regenerating after renaming. * Method testVault is supposed to be empty. */ public void testVault() throws Exception { // JUnitDoclet begin method testcase.testVault // JUnitDoclet end method testcase.testVault } public static void main(String[] args) { // JUnitDoclet begin method testcase.main junit.textui.TestRunner.run(BreadCrumbFilterTest.class); // JUnitDoclet end method testcase.main } } --- NEW FILE: FilterSuite.java --- package org.appfuse.webapp.filter; import junit.framework.TestSuite; // JUnitDoclet begin import // JUnitDoclet end import /** * Generated by JUnitDoclet, a tool provided by * ObjectFab GmbH under LGPL. * Please see www.junitdoclet.org, www.gnu.org * and www.objectfab.de for informations about * the tool, the licence and the authors. */ public class FilterSuite // JUnitDoclet begin extends_implements // JUnitDoclet end extends_implements { // JUnitDoclet begin class // JUnitDoclet end class public static TestSuite suite() { TestSuite suite; suite = new TestSuite("org.appfuse.webapp.filter"); suite.addTestSuite(org.appfuse.webapp.filter.BreadCrumbFilterTest.class); suite.addTestSuite(org.appfuse.webapp.filter.ActionFilterTest.class); // JUnitDoclet begin method suite // JUnitDoclet end method suite return suite; } public static void main(String[] args) { // JUnitDoclet begin method testsuite.main junit.textui.TestRunner.run(suite()); // JUnitDoclet end method testsuite.main } } |
From: <mr...@us...> - 2003-01-08 05:56:42
|
Update of /cvsroot/struts/struts-resume/test/web/org/appfuse/webapp/action In directory sc8-pr-cvs1:/tmp/cvs-serv30861 Added Files: ActionSuite.java BaseActionTest.java LoginServletTest.java MainMenuTest.java MainMenuTest.properties ResumeActionTest.java UploadActionTest.java UserActionTest.java Log Message: --- NEW FILE: ActionSuite.java --- package org.appfuse.webapp.action; import junit.framework.TestSuite; // JUnitDoclet begin import // JUnitDoclet end import /** * Generated by JUnitDoclet, a tool provided by * ObjectFab GmbH under LGPL. * Please see www.junitdoclet.org, www.gnu.org * and www.objectfab.de for informations about * the tool, the licence and the authors. */ public class ActionSuite // JUnitDoclet begin extends_implements // JUnitDoclet end extends_implements { // JUnitDoclet begin class // JUnitDoclet end class public static TestSuite suite() { TestSuite suite; suite = new TestSuite("org.appfuse.webapp.action"); suite.addTestSuite(org.appfuse.webapp.action.UserActionTest.class); suite.addTestSuite(org.appfuse.webapp.action.UploadActionTest.class); suite.addTestSuite(org.appfuse.webapp.action.ResumeActionTest.class); suite.addTestSuite(org.appfuse.webapp.action.LoginServletTest.class); suite.addTestSuite(org.appfuse.webapp.action.BaseActionTest.class); // JUnitDoclet begin method suite // JUnitDoclet end method suite return suite; } public static void main(String[] args) { // JUnitDoclet begin method testsuite.main junit.textui.TestRunner.run(suite()); // JUnitDoclet end method testsuite.main } } --- NEW FILE: BaseActionTest.java --- package org.appfuse.webapp.action; import junit.framework.TestCase; // JUnitDoclet end import /** * Generated by JUnitDoclet, a tool provided by * ObjectFab GmbH under LGPL. * Please see www.junitdoclet.org, www.gnu.org * and www.objectfab.de for informations about * the tool, the licence and the authors. */ public class BaseActionTest // JUnitDoclet begin extends_implements extends TestCase // JUnitDoclet end extends_implements { // JUnitDoclet begin class BaseAction baseaction = null; // JUnitDoclet end class public BaseActionTest(String name) { // JUnitDoclet begin method BaseActionTest super(name); // JUnitDoclet end method BaseActionTest } public org.appfuse.webapp.action.BaseAction createInstance() throws Exception { // JUnitDoclet begin method testcase.createInstance return new BaseAction(); // JUnitDoclet end method testcase.createInstance } protected void setUp() throws Exception { // JUnitDoclet begin method testcase.setUp super.setUp(); baseaction = createInstance(); // JUnitDoclet end method testcase.setUp } protected void tearDown() throws Exception { // JUnitDoclet begin method testcase.tearDown baseaction = null; super.tearDown(); // JUnitDoclet end method testcase.tearDown } public void testGetKeyMethodMap() throws Exception { // JUnitDoclet begin method getKeyMethodMap // JUnitDoclet end method getKeyMethodMap } /** * JUnitDoclet moves marker to this method, if there is not match * for them in the regenerated code and if the marker is not empty. * This way, no test gets lost when regenerating after renaming. * Method testVault is supposed to be empty. */ public void testVault() throws Exception { // JUnitDoclet begin method testcase.testVault // JUnitDoclet end method testcase.testVault } public static void main(String[] args) { // JUnitDoclet begin method testcase.main junit.textui.TestRunner.run(BaseActionTest.class); // JUnitDoclet end method testcase.main } } --- NEW FILE: LoginServletTest.java --- package org.appfuse.webapp.action; import org.apache.cactus.ServletTestCase; import org.apache.cactus.WebRequest; import org.apache.cactus.WebResponse; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.appfuse.common.Constants; // JUnitDoclet end import /** * Generated by JUnitDoclet, a tool provided by ObjectFab GmbH under LGPL. * Please see www.junitdoclet.org, www.gnu.org and www.objectfab.de for * informations about the tool, the licence and the authors. */ public class LoginServletTest extends ServletTestCase // JUnitDoclet end extends_implements { //~ Instance fields ======================================================== private Log log = LogFactory.getLog(LoginServletTest.class); // JUnitDoclet begin class LoginServlet servlet = null; //~ Constructors =========================================================== // JUnitDoclet end class public LoginServletTest(String name) { // JUnitDoclet begin method LoginServletTest super(name); // JUnitDoclet end method LoginServletTest } //~ Methods ================================================================ public LoginServlet createInstance() throws Exception { // JUnitDoclet begin method testcase.createInstance return new LoginServlet(); // JUnitDoclet end method testcase.createInstance } protected void setUp() throws Exception { // JUnitDoclet begin method testcase.setUp super.setUp(); servlet = new LoginServlet(); // set initialization parameters config.setInitParameter(Constants.AUTH_URL, "j_security_check"); config.setInitParameter(Constants.HTTP_PORT, "8080"); config.setInitParameter(Constants.HTTPS_PORT, "8443"); config.setInitParameter("isSecure", "false"); config.setInitParameter(Constants.ENC_ALGORITHM, "SHA"); servlet.init(config); // JUnitDoclet end method testcase.setUp } protected void tearDown() throws Exception { // JUnitDoclet begin method testcase.tearDown servlet = null; super.tearDown(); // JUnitDoclet end method testcase.tearDown } /** * Test that initialization parameters were set * * @throws Exception */ public void testInit() throws Exception { // check all parameters from web.xml String authURL = config.getInitParameter(Constants.AUTH_URL); assertTrue((authURL != null) && authURL.equals("j_security_check")); assertEquals((String) servlet.getServletContext().getAttribute(Constants.HTTP_PORT), "8080"); assertEquals((String) servlet.getServletContext().getAttribute(Constants.HTTPS_PORT), "8443"); assertEquals((Boolean) servlet.getServletContext().getAttribute(Constants.SECURE_LOGIN), Boolean.FALSE); assertEquals((String) servlet.getServletContext().getAttribute(Constants.ENC_ALGORITHM), "SHA"); } public void testDoGet() throws Exception { // JUnitDoclet begin method doGet // JUnitDoclet end method doGet } public void testDoPost() throws Exception { // JUnitDoclet begin method doPost // JUnitDoclet end method doPost } public void beginExecute(WebRequest wRequest) { wRequest.addParameter("j_username", "tomcat"); wRequest.addParameter("j_password", "tomcat"); } /** * Test logging in as user a user * * @throws Exception */ public void testExecute() throws Exception { servlet.execute(request, response); } public void endExecute(WebResponse response) { // verify user object placed into session, maybe get URL // verify that password was encrypted // get header value, verify Http Status 302 } /** * JUnitDoclet moves marker to this method, if there is not match for them * in the regenerated code and if the marker is not empty. This way, no * test gets lost when regenerating after renaming. Method testVault is * supposed to be empty. * * @throws Exception DOCUMENT ME! */ public void testVault() throws Exception { // JUnitDoclet begin method testcase.testVault // JUnitDoclet end method testcase.testVault } public static void main(String[] args) { // JUnitDoclet begin method testcase.main junit.textui.TestRunner.run(LoginServletTest.class); // JUnitDoclet end method testcase.main } } --- NEW FILE: MainMenuTest.java --- package org.appfuse.webapp.action; import java.util.ResourceBundle; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.w3c.dom.Document; import org.w3c.dom.NodeList; import com.meterware.httpunit.GetMethodWebRequest; import com.meterware.httpunit.PostMethodWebRequest; import com.meterware.httpunit.WebConversation; import com.meterware.httpunit.WebForm; import com.meterware.httpunit.WebRequest; import com.meterware.httpunit.WebResponse; /** * HttpUnit test to verify links in the mainMenu.jsp */ public class MainMenuTest extends TestCase { //~ Instance fields ======================================================== private Log log = LogFactory.getLog(MainMenuTest.class); // --------------------------------------------------------- Private member variables private ResourceBundle messages = null; private ResourceBundle testParams = null; private WebConversation conversation = null; //~ Constructors =========================================================== /** * Constructor * * @param name name of test */ public MainMenuTest(String name) { super(name); } //~ Methods ================================================================ // --------------------------------------------------------- Public Methods /** * main method * * @param args any arguments for this test */ public static void main(String[] args) { junit.textui.TestRunner.run(suite()); } /** * declare test suite * * @return this testSuite */ public static Test suite() { return new TestSuite(MainMenuTest.class); } /** * load resources and setup values * * @throws Exception an exception */ protected void setUp() throws Exception { messages = ResourceBundle.getBundle("ApplicationResources"); testParams = ResourceBundle.getBundle("org.appfuse.webapp.action.MainMenuTest"); conversation = new WebConversation(); } /** * Verifies that trying to access protected resource with http:// presents * a login page * * @throws Exception exception indicating errors */ public void testSecuredResourceWithHTTP() throws Exception { if (log.isDebugEnabled()) { log.debug("Retrieving URL: " + testParams.getString("unsecureUrl")); } WebRequest request = new GetMethodWebRequest(testParams.getString("unsecureUrl")); WebResponse response = conversation.getResponse(request); Document document = response.getDOM(); NodeList nl = document.getElementsByTagName("title"); assertEquals(messages.getString("login.title"), nl.item(0).getFirstChild().getNodeValue()); } /** * Verifies that trying to access protected resource with https:// presents * a login page * * @throws Exception exception indicating errors */ /* This method requires extra configuration settings with httpunit - see http://www.httpunit.org/doc/sslfaq.html for more information. public void testSecuredResourceWithHTTPS() throws Exception { if (log.isDebugEnabled()) { log.debug("Retrieving URL: " + testParams.getString("secureUrl")); } WebRequest request = new GetMethodWebRequest(testParams.getString("secureUrl")); WebResponse response = conversation.getResponse(request); Document document = response.getDOM(); NodeList nl = document.getElementsByTagName("title"); assertEquals(messages.getString("login.title"), nl.item(0).getFirstChild().getNodeValue()); } */ /** * Test the login form presented to the user * * @throws Exception exception indicating errors */ public void testLoginForm() throws Exception { if (log.isDebugEnabled()) { log.debug("Retrieving URL: " + testParams.getString("unsecureUrl")); } WebRequest request = new GetMethodWebRequest(testParams.getString("unsecureUrl")); WebResponse response = conversation.getResponse(request); WebForm form = response.getFormWithID(testParams.getString("loginFormId")); // obtain the desired form assertNotNull("No form found with ID 'loginForm'", form); // expected elements // 1. j_username // 2. j_password // 3. j_uri // 4. submit // 5. reset String[] elements = form.getParameterNames(); assertEquals(5, elements.length); // verify that there's only one submit button assertEquals("Number of submit buttons", 1, form.getSubmitButtons().length); } /** * Login and verify that links show up properly on the MainMenu * * @throws Exception exception indicating errors */ public void testMainMenu() throws Exception { WebRequest request = new PostMethodWebRequest(testParams.getString("loginUrl")); WebResponse response = conversation.getResponse(request); WebForm form = response.getFormWithID(testParams.getString("loginFormId")); // (1) obtain the desired form request = form.getRequest(); request.setParameter("j_username", testParams.getString("username")); request.setParameter("j_password", testParams.getString("password")); response = conversation.getResponse(request); Document document = response.getDOM(); NodeList nl = document.getElementsByTagName("title"); assertEquals(messages.getString("mainMenu.title"), nl.item(0).getFirstChild().getNodeValue()); NodeList links = document.getElementsByTagName("ul"); log.debug("links.getLength()" + links.getLength()); assertTrue(links.getLength() == 4); } } --- NEW FILE: MainMenuTest.properties --- # Configuration file for HttpUnit # Defines the URLs and other properties for MainMenuTest secureUrl=https://localhost:8443/appfuse/welcome.do unsecureUrl=http://localhost:8080/appfuse/welcome.do loginUrl=http://localhost:8080/appfuse/welcome.do loginFormId=loginForm username=tomcat password=tomcat --- NEW FILE: ResumeActionTest.java --- package org.appfuse.webapp.action; import org.appfuse.common.Constants; import org.appfuse.webapp.form.UserForm; import org.appfuse.webapp.service.UserManager; import org.appfuse.webapp.service.UserManagerImpl; import servletunit.struts.CactusStrutsTestCase; // JUnitDoclet end import /** * Generated by JUnitDoclet, a tool provided by ObjectFab GmbH under LGPL. * Please see www.junitdoclet.org, www.gnu.org and www.objectfab.de for * informations about the tool, the licence and the authors. */ public class ResumeActionTest extends CactusStrutsTestCase // JUnitDoclet end extends_implements { //~ Instance fields ======================================================== // JUnitDoclet begin class String daoType = Constants.DAO_TYPE_HIBERNATE; UserForm userForm; //~ Constructors =========================================================== // JUnitDoclet end class public ResumeActionTest(String name) { // JUnitDoclet begin method ResumeActionTest super(name); // JUnitDoclet end method ResumeActionTest } //~ Methods ================================================================ public void setUp() throws Exception { // JUnitDoclet begin method testcase.setUp super.setUp(); // populate the userForm and place into session String username = "tomcat"; UserManager mgr = new UserManagerImpl(daoType); userForm = mgr.getUser(username); getSession().setAttribute(Constants.USER_KEY, userForm); // JUnitDoclet end method testcase.setUp } protected void tearDown() throws Exception { // JUnitDoclet begin method testcase.tearDown super.tearDown(); // JUnitDoclet end method testcase.tearDown } public void testCancel() throws Exception { // JUnitDoclet begin method cancel // JUnitDoclet end method cancel } public void testRemove() throws Exception { // JUnitDoclet begin method remove // JUnitDoclet end method remove } public void testEdit() throws Exception { // JUnitDoclet begin method edit // JUnitDoclet end method edit } public void testSave() throws Exception { // JUnitDoclet begin method save // JUnitDoclet end method save } public void testSearch() throws Exception { // JUnitDoclet begin method search setRequestPathInfo("/viewResumes.do"); addRequestParameter("action", "Search"); actionPerform(); // throws NullPointerException ?? // verifyForward("list"); assertTrue(getRequest().getAttribute(Constants.USER_RESUMES) != null); verifyNoActionErrors(); // JUnitDoclet end method search } /** * JUnitDoclet moves marker to this method, if there is not match for them * in the regenerated code and if the marker is not empty. This way, no * test gets lost when regenerating after renaming. Method testVault is * supposed to be empty. * * @throws Exception DOCUMENT ME! */ public void testVault() throws Exception { // JUnitDoclet begin method testcase.testVault // JUnitDoclet end method testcase.testVault } public static void main(String[] args) { // JUnitDoclet begin method testcase.main junit.textui.TestRunner.run(ResumeActionTest.class); // JUnitDoclet end method testcase.main } } --- NEW FILE: UploadActionTest.java --- package org.appfuse.webapp.action; import junit.framework.TestCase; // JUnitDoclet end import /** * Generated by JUnitDoclet, a tool provided by * ObjectFab GmbH under LGPL. * Please see www.junitdoclet.org, www.gnu.org * and www.objectfab.de for informations about * the tool, the licence and the authors. */ public class UploadActionTest // JUnitDoclet begin extends_implements extends TestCase // JUnitDoclet end extends_implements { // JUnitDoclet begin class org.appfuse.webapp.action.UploadAction uploadaction = null; // JUnitDoclet end class public UploadActionTest(String name) { // JUnitDoclet begin method UploadActionTest super(name); // JUnitDoclet end method UploadActionTest } public org.appfuse.webapp.action.UploadAction createInstance() throws Exception { // JUnitDoclet begin method testcase.createInstance return new org.appfuse.webapp.action.UploadAction(); // JUnitDoclet end method testcase.createInstance } protected void setUp() throws Exception { // JUnitDoclet begin method testcase.setUp super.setUp(); uploadaction = createInstance(); // JUnitDoclet end method testcase.setUp } protected void tearDown() throws Exception { // JUnitDoclet begin method testcase.tearDown uploadaction = null; super.tearDown(); // JUnitDoclet end method testcase.tearDown } public void testExecute() throws Exception { // JUnitDoclet begin method execute // JUnitDoclet end method execute } /** * JUnitDoclet moves marker to this method, if there is not match * for them in the regenerated code and if the marker is not empty. * This way, no test gets lost when regenerating after renaming. * Method testVault is supposed to be empty. */ public void testVault() throws Exception { // JUnitDoclet begin method testcase.testVault // JUnitDoclet end method testcase.testVault } public static void main(String[] args) { // JUnitDoclet begin method testcase.main junit.textui.TestRunner.run(UploadActionTest.class); // JUnitDoclet end method testcase.main } } --- NEW FILE: UserActionTest.java --- package org.appfuse.webapp.action; import junit.framework.TestCase; // JUnitDoclet end import /** * Generated by JUnitDoclet, a tool provided by * ObjectFab GmbH under LGPL. * Please see www.junitdoclet.org, www.gnu.org * and www.objectfab.de for informations about * the tool, the licence and the authors. */ public class UserActionTest // JUnitDoclet begin extends_implements extends TestCase // JUnitDoclet end extends_implements { // JUnitDoclet begin class org.appfuse.webapp.action.UserAction useraction = null; // JUnitDoclet end class public UserActionTest(String name) { // JUnitDoclet begin method UserActionTest super(name); // JUnitDoclet end method UserActionTest } public org.appfuse.webapp.action.UserAction createInstance() throws Exception { // JUnitDoclet begin method testcase.createInstance return new org.appfuse.webapp.action.UserAction(); // JUnitDoclet end method testcase.createInstance } protected void setUp() throws Exception { // JUnitDoclet begin method testcase.setUp super.setUp(); useraction = createInstance(); // JUnitDoclet end method testcase.setUp } protected void tearDown() throws Exception { // JUnitDoclet begin method testcase.tearDown useraction = null; super.tearDown(); // JUnitDoclet end method testcase.tearDown } public void testCancel() throws Exception { // JUnitDoclet begin method cancel // JUnitDoclet end method cancel } public void testRemove() throws Exception { // JUnitDoclet begin method remove // JUnitDoclet end method remove } public void testEdit() throws Exception { // JUnitDoclet begin method edit // JUnitDoclet end method edit } public void testSave() throws Exception { // JUnitDoclet begin method save // JUnitDoclet end method save } public void testSearch() throws Exception { // JUnitDoclet begin method search // JUnitDoclet end method search } /** * JUnitDoclet moves marker to this method, if there is not match * for them in the regenerated code and if the marker is not empty. * This way, no test gets lost when regenerating after renaming. * Method testVault is supposed to be empty. */ public void testVault() throws Exception { // JUnitDoclet begin method testcase.testVault // JUnitDoclet end method testcase.testVault } public static void main(String[] args) { // JUnitDoclet begin method testcase.main junit.textui.TestRunner.run(UserActionTest.class); // JUnitDoclet end method testcase.main } } |
From: <mr...@us...> - 2003-01-08 05:56:27
|
Update of /cvsroot/struts/struts-resume/test/web/org/appfuse/webapp In directory sc8-pr-cvs1:/tmp/cvs-serv30792 Added Files: StartupServletTest.java WebappSuite.java Log Message: --- NEW FILE: StartupServletTest.java --- package org.appfuse.webapp; import junit.framework.TestCase; // JUnitDoclet end import /** * Generated by JUnitDoclet, a tool provided by * ObjectFab GmbH under LGPL. * Please see www.junitdoclet.org, www.gnu.org * and www.objectfab.de for informations about * the tool, the licence and the authors. */ public class StartupServletTest // JUnitDoclet begin extends_implements extends TestCase // JUnitDoclet end extends_implements { // JUnitDoclet begin class org.appfuse.webapp.StartupServlet startupservlet = null; // JUnitDoclet end class public StartupServletTest(String name) { // JUnitDoclet begin method StartupServletTest super(name); // JUnitDoclet end method StartupServletTest } public org.appfuse.webapp.StartupServlet createInstance() throws Exception { // JUnitDoclet begin method testcase.createInstance return new org.appfuse.webapp.StartupServlet(); // JUnitDoclet end method testcase.createInstance } protected void setUp() throws Exception { // JUnitDoclet begin method testcase.setUp super.setUp(); startupservlet = createInstance(); // JUnitDoclet end method testcase.setUp } protected void tearDown() throws Exception { // JUnitDoclet begin method testcase.tearDown startupservlet = null; super.tearDown(); // JUnitDoclet end method testcase.tearDown } public void testInit() throws Exception { // JUnitDoclet begin method init // JUnitDoclet end method init } /** * JUnitDoclet moves marker to this method, if there is not match * for them in the regenerated code and if the marker is not empty. * This way, no test gets lost when regenerating after renaming. * Method testVault is supposed to be empty. */ public void testVault() throws Exception { // JUnitDoclet begin method testcase.testVault // JUnitDoclet end method testcase.testVault } public static void main(String[] args) { // JUnitDoclet begin method testcase.main junit.textui.TestRunner.run(StartupServletTest.class); // JUnitDoclet end method testcase.main } } --- NEW FILE: WebappSuite.java --- package org.appfuse.webapp; import junit.framework.TestSuite; // JUnitDoclet begin import // JUnitDoclet end import /** * Generated by JUnitDoclet, a tool provided by * ObjectFab GmbH under LGPL. * Please see www.junitdoclet.org, www.gnu.org * and www.objectfab.de for informations about * the tool, the licence and the authors. */ public class WebappSuite // JUnitDoclet begin extends_implements // JUnitDoclet end extends_implements { // JUnitDoclet begin class // JUnitDoclet end class public static TestSuite suite() { TestSuite suite; suite = new TestSuite("org.appfuse.webapp"); suite.addTestSuite(org.appfuse.webapp.StartupServletTest.class); suite.addTest(org.appfuse.webapp.action.ActionSuite.suite()); suite.addTest(org.appfuse.webapp.filter.FilterSuite.suite()); suite.addTest(org.appfuse.webapp.taglib.TaglibSuite.suite()); suite.addTest(org.appfuse.webapp.util.UtilSuite.suite()); // JUnitDoclet begin method suite // JUnitDoclet end method suite return suite; } public static void main(String[] args) { // JUnitDoclet begin method testsuite.main junit.textui.TestRunner.run(suite()); // JUnitDoclet end method testsuite.main } } |
From: <mr...@us...> - 2003-01-08 05:56:19
|
Update of /cvsroot/struts/struts-resume/test/web/org/appfuse/webapp/filter In directory sc8-pr-cvs1:/tmp/cvs-serv30705/filter Log Message: Directory /cvsroot/struts/struts-resume/test/web/org/appfuse/webapp/filter added to the repository |
From: <mr...@us...> - 2003-01-08 05:56:19
|
Update of /cvsroot/struts/struts-resume/test/web/org/appfuse/webapp/util In directory sc8-pr-cvs1:/tmp/cvs-serv30705/util Log Message: Directory /cvsroot/struts/struts-resume/test/web/org/appfuse/webapp/util added to the repository |
From: <mr...@us...> - 2003-01-08 05:56:19
|
Update of /cvsroot/struts/struts-resume/test/web/org/appfuse/webapp/taglib In directory sc8-pr-cvs1:/tmp/cvs-serv30705/taglib Log Message: Directory /cvsroot/struts/struts-resume/test/web/org/appfuse/webapp/taglib added to the repository |
From: <mr...@us...> - 2003-01-08 05:56:19
|
Update of /cvsroot/struts/struts-resume/test/web/org/appfuse/webapp/service In directory sc8-pr-cvs1:/tmp/cvs-serv30705/service Log Message: Directory /cvsroot/struts/struts-resume/test/web/org/appfuse/webapp/service added to the repository |
From: <mr...@us...> - 2003-01-08 05:56:19
|
Update of /cvsroot/struts/struts-resume/test/web/org/appfuse/webapp/form In directory sc8-pr-cvs1:/tmp/cvs-serv30705/form Log Message: Directory /cvsroot/struts/struts-resume/test/web/org/appfuse/webapp/form added to the repository |
From: <mr...@us...> - 2003-01-08 05:56:19
|
Update of /cvsroot/struts/struts-resume/test/web/org/appfuse/webapp/action In directory sc8-pr-cvs1:/tmp/cvs-serv30705/action Log Message: Directory /cvsroot/struts/struts-resume/test/web/org/appfuse/webapp/action added to the repository |
From: <mr...@us...> - 2003-01-08 05:56:13
|
Update of /cvsroot/struts/struts-resume/test/web/org/appfuse/webapp In directory sc8-pr-cvs1:/tmp/cvs-serv30671/webapp Log Message: Directory /cvsroot/struts/struts-resume/test/web/org/appfuse/webapp added to the repository |
From: <mr...@us...> - 2003-01-08 05:56:07
|
Update of /cvsroot/struts/struts-resume/test/web/org/appfuse In directory sc8-pr-cvs1:/tmp/cvs-serv30645/appfuse Log Message: Directory /cvsroot/struts/struts-resume/test/web/org/appfuse added to the repository |
From: <mr...@us...> - 2003-01-08 05:56:02
|
Update of /cvsroot/struts/struts-resume/test/web/org In directory sc8-pr-cvs1:/tmp/cvs-serv30592/org Log Message: Directory /cvsroot/struts/struts-resume/test/web/org added to the repository |
From: <mr...@us...> - 2003-01-08 05:55:37
|
Update of /cvsroot/struts/struts-resume/test/ejb/org/appfuse/persistence In directory sc8-pr-cvs1:/tmp/cvs-serv30486/persistence Log Message: Directory /cvsroot/struts/struts-resume/test/ejb/org/appfuse/persistence added to the repository |
From: <mr...@us...> - 2003-01-08 05:55:32
|
Update of /cvsroot/struts/struts-resume/test/ejb/org/appfuse In directory sc8-pr-cvs1:/tmp/cvs-serv30453/appfuse Log Message: Directory /cvsroot/struts/struts-resume/test/ejb/org/appfuse added to the repository |