rleland 2003/07/25 21:23:08 Modified: src/test/org/apache/struts/action TestDynaActionForm.java Log: Make test extend ModuleConfigImpl and not ApplicationConfig. Need to work in factory for this. Revision Changes Path 1.11 +8 -8 jakarta-struts/src/test/org/apache/struts/action/TestDynaActionForm.java Index: TestDynaActionForm.java =================================================================== RCS file: /home/cvs/jakarta-struts/src/test/org/apache/struts/action/TestDynaActionForm.java,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- TestDynaActionForm.java 28 Feb 2003 02:42:13 -0000 1.10 +++ TestDynaActionForm.java 26 Jul 2003 04:23:07 -0000 1.11 @@ -64,9 +64,10 @@ import junit.framework.TestSuite; import org.apache.commons.beanutils.DynaProperty; -import org.apache.struts.config.ApplicationConfig; +import org.apache.struts.config.ModuleConfig; import org.apache.struts.config.FormBeanConfig; import org.apache.struts.config.ModuleConfig; +import org.apache.struts.config.impl.ModuleConfigImpl; /** @@ -114,9 +115,9 @@ /** - * Dummy ApplicationConfig for calls to reset() and validate(). + * Dummy ModuleConfig for calls to reset() and validate(). */ - protected ApplicationConfig appConfig = null; + protected ModuleConfig moduleConfig = null; /** @@ -170,8 +171,8 @@ throw new RuntimeException(e.getMessage()); } setupComplexProperties(); - appConfig = new DynaActionFormConfig(beanConfig); - mapping = new DynaActionFormMapping(appConfig); + moduleConfig = new DynaActionFormConfig(beanConfig); + mapping = new DynaActionFormMapping(moduleConfig); } @@ -180,7 +181,7 @@ public void tearDown() { super.tearDown(); - appConfig = null; + moduleConfig = null; dynaForm = null; mapping = null; @@ -837,7 +838,6 @@ */ public void testSetMappedValues() { - Object value = null; try { dynaForm.set("mappedProperty", "First Key", "New First Value"); @@ -1076,7 +1076,7 @@ -class DynaActionFormConfig extends ApplicationConfig { +class DynaActionFormConfig extends ModuleConfigImpl { public DynaActionFormConfig(FormBeanConfig beanConfig) { super("");
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]