jp.terasoluna.fw.web.struts.form.DynaValidatorActionFormExTest.java Source code

Java tutorial

Introduction

Here is the source code for jp.terasoluna.fw.web.struts.form.DynaValidatorActionFormExTest.java

Source

/*
 * Copyright (c) 2007 NTT DATA Corporation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package jp.terasoluna.fw.web.struts.form;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import jp.terasoluna.fw.web.struts.reset.Resetter;
import jp.terasoluna.fw.web.struts.reset.ResetterImpl;
import jp.terasoluna.utlib.DynaActionFormCreator;
import jp.terasoluna.utlib.LogUTUtil;
import jp.terasoluna.utlib.MockHttpServletRequest;
import jp.terasoluna.utlib.MockHttpSession;
import jp.terasoluna.utlib.MockServletContext;
import jp.terasoluna.utlib.UTUtil;
import junit.framework.TestCase;

import org.apache.commons.beanutils.DynaProperty;
import org.apache.struts.Globals;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.DynaActionFormClass;
import org.apache.struts.config.ModuleConfig;
import org.apache.struts.config.impl.ModuleConfigImpl;

/**
 * {@link jp.terasoluna.fw.web.struts.form.DynaValidatorActionFormEx} NXubN{bNXeXg?B
 *
 * <p>
 * <h4>?yNXTv?z</h4>
 * IANVtH?[NX?B
 * <p>
 *
 * @see jp.terasoluna.fw.web.struts.form.DynaValidatorActionFormEx
 */
public class DynaValidatorActionFormExTest extends TestCase {

    /**
     * DynaValidatorActionFormExv?peB?t@C
     */
    private static final String CONFIG_FILE_PATH = DynaValidatorActionFormExTest.class
            .getResource("DynaValidatorActionFormExTest.xml").getPath();

    /**
     * DynaValidatorActionFormEx???[?t@C
     */
    private final static String RULES_FILE_PATH = DynaValidatorActionFormExTest.class
            .getResource("DynaValidatorActionFormExTest-rules.xml").getPath();
    /**
     * DynaValidatorActionFormEx??NX?B
     */
    private static final DynaActionFormCreator creator = new DynaActionFormCreator(RULES_FILE_PATH);

    /**
     * eXg?CX^X
     */
    private DynaValidatorActionFormEx formEx = null;

    /**
     * eXgP?[X?s
     * GUI AvP?[VN?B
     *
     * @param args java R}h?p??[^
     */
    public static void main(String[] args) {
        junit.swingui.TestRunner.run(DynaValidatorActionFormExTest.class);
    }

    /**
     * ????s?B
     *
     * @throws Exception ?\bh?O
     * @see junit.framework.TestCase#setUp()
     */
    @SuppressWarnings("unchecked")
    @Override
    protected void setUp() throws Exception {
        super.setUp();
        // create formEx
        // ?set?\bh?o?Av?peB?L?qt@Cw
        this.formEx = (DynaValidatorActionFormEx) creator.create(CONFIG_FILE_PATH);

        // i[l??
        int hogeInt = 123;
        String hogeString = "data1";
        int[] hogeIntArray = { -100, 0, 10, 111 };
        String[] hogeStringArray = new String[4];
        Object[] hogeObjectArray = new Object[4];
        List<Object> hogeList = new ArrayList<Object>();
        Map<String, Object> hogeMap = new HashMap<String, Object>();
        Runnable hogeRunnable = new Runnable() {
            public void run() {
            }
        };
        boolean hogeBoolean = true;
        byte hogeByte = 1;
        char hogeChar = 'A';
        double hogeDouble = 999.9;
        float hogeFloat = 999;
        short hogeShort = 9;
        long hogeLong = 9;

        for (int i = 0; i < 4; i++) {
            hogeStringArray[i] = "data" + (i + 1);
            hogeObjectArray[i] = new Integer(i + 1);
            hogeList.add(i, "data" + (i + 1));
            hogeMap.put("field" + (i + 1), "data" + (i + 1));
        }

        String[] fields = { "hogeInt", "hogeString", "hogeIntArray", "hogeStringArray", "hogeObjectArray",
                "hogeList", "hogeMap", "hogeRunnable", "hogeBoolean", "hogeByte", "hogeChar", "hogeDouble",
                "hogeFloat", "hogeShort", "hogeLong" };
        Class[] fieldClasses = { int.class, hogeString.getClass(), hogeIntArray.getClass(),
                hogeStringArray.getClass(), hogeObjectArray.getClass(), hogeList.getClass(), hogeMap.getClass(),
                hogeRunnable.getClass(), boolean.class, byte.class, char.class, double.class, float.class,
                short.class, long.class };
        DynaProperty[] props = new DynaProperty[fields.length];
        HashMap<String, DynaProperty> propsMap = new HashMap<String, DynaProperty>();
        for (int i = 0; i < fields.length; i++) {
            props[i] = new DynaProperty(fields[i], fieldClasses[i]);
            propsMap.put(props[i].getName(), props[i]);
        }
        DynaActionFormClass dynaActionFormClass = (DynaActionFormClass) UTUtil.getPrivateField(this.formEx,
                "dynaClass");
        UTUtil.setPrivateField(dynaActionFormClass, "properties", props);
        UTUtil.setPrivateField(dynaActionFormClass, "propertiesMap", propsMap);

        Map<String, Object> map = (Map) UTUtil.getPrivateField(this.formEx, "dynaValues");
        map.put("hogeInt", hogeInt);
        map.put("hogeString", hogeString);
        map.put("hogeIntArray", hogeIntArray);
        map.put("hogeStringArray", hogeStringArray);
        map.put("hogeObjectArray", hogeObjectArray);
        map.put("hogeList", hogeList);
        map.put("hogeMap", hogeMap);
        map.put("hogeRunnable", hogeRunnable);
        map.put("hogeBoolean", hogeBoolean);
        map.put("hogeByte", hogeByte);
        map.put("hogeChar", hogeChar);
        map.put("hogeDouble", hogeDouble);
        map.put("hogeFloat", hogeFloat);
        map.put("hogeShort", hogeShort);
        map.put("hogeLong", hogeLong);
    }

    /**
     * ?I???s?B
     *
     * @throws Exception ?\bh?O
     * @see junit.framework.TestCase#tearDown()
     */
    @Override
    protected void tearDown() throws Exception {
        super.tearDown();
    }

    /**
     * RXgN^?B
     *
     * @param name eXgP?[XO?B
     */
    public DynaValidatorActionFormExTest(String name) {
        super(name);
    }

    /**
     * testGet01()
     * <br><br>
     *
     * (?n)
     * <br>
     * _?FG
     * <br><br>
     * l?F(?) name:null<br>
     *         (?) index:0<br>
     *
     * <br>
     * l?F(?) O:NullPointerException?F<br>
     *                    ?bZ?[W?F"No indexed value for 'null[0]'"<br>
     *
     * <br>
     * namenull??ANullPointerExceptionX??[mF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testGet01() throws Exception {
        // eXg?s
        try {
            this.formEx.get(null, 0);
            fail();
        } catch (NullPointerException e) {
            // eXgmF
            assertEquals("No indexed value for 'null[0]'", e.getMessage());
        }
    }

    /**
     * testGet02()
     * <br><br>
     *
     * (?n)
     * <br>
     * _?FG
     * <br><br>
     * l?F(?) name:<br>
     *         (?) index:0<br>
     *
     * <br>
     * l?F(?) O:NullPointerException?F<br>
     *                    ?bZ?[W?F"No indexed value for '[0]'"<br>
     *
     * <br>
     * name??ANullPointerExceptionX??[mF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testGet02() throws Exception {
        // eXg?s
        try {
            this.formEx.get("", 0);
            fail();
        } catch (NullPointerException e) {
            // eXgmF
            assertEquals("No indexed value for '[0]'", e.getMessage());
        }
    }

    /**
     * testGet03()
     * <br><br>
     *
     * (?n)
     * <br>
     * _?FG
     * <br><br>
     * l?F(?) name:"foo"?i?tB?[h?j<br>
     *         (?) index:0<br>
     *
     * <br>
     * l?F(?) O:NullPointerException?F<br>
     *                    ?bZ?[W?F"No indexed value for 'foo[0]'"<br>
     *
     * <br>
     * name?tB?[h??ANullPointerExceptionX??[mF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testGet03() throws Exception {
        // eXg?s
        try {
            this.formEx.get("foo", 0);
            fail();
        } catch (NullPointerException e) {
            // eXgmF
            assertEquals("No indexed value for 'foo[0]'", e.getMessage());
        }
    }

    /**
     * testGet04()
     * <br><br>
     *
     * (?n)
     * <br>
     * _?FG
     * <br><br>
     * l?F(?) name:"hogeString"<br>
     *         (?) index:0<br>
     *
     * <br>
     * l?F(?) O:IllegalArgumentException?F<br>
     *                    ?bZ?[W?F"Non-indexed property for 'hogeString[0]'"<br>
     *
     * <br>
     * fieldNamezListtB?[h??AIllegalArgumentExceptionX??[mF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testGet04() throws Exception {
        // eXg?s
        try {
            this.formEx.get("hogeString", 0);
            fail();
        } catch (IllegalArgumentException e) {
            // eXgmF
            assertEquals("Non-indexed property for 'hogeString[0]'", e.getMessage());
        }
    }

    /**
     * testGet05()
     * <br><br>
     *
     * (??n)
     * <br>
     * _?FC
     * <br><br>
     * l?F(?) name:"hogeStringArray"<br>
     *         (?) index:-1<br>
     *         (?) fieldNamewtB?[h:Stringz^:["data1", "data2", "data3", "data4"]<br>
     *
     * <br>
     * l?F(l) Object:null<br>
     *
     * <br>
     * namez^tB?[h??AIndex-1??AnullmF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testGet05() throws Exception {
        // eXg?s
        Object object = this.formEx.get("hogeStringArray", -1);

        // eXgmF
        assertNull(object);
    }

    /**
     * testGet06()
     * <br><br>
     *
     * (??n)
     * <br>
     * _?FC
     * <br><br>
     * l?F(?) name:"hogeStringArray"<br>
     *         (?) index:0<br>
     *         (?) fieldNamewtB?[h:Stringz^:["data1", "data2", "data3", "data4"]<br>
     *
     * <br>
     * l?F(l) Object:"data1"<br>
     *
     * <br>
     * namez^tB?[h??AIndex0??AlmF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testGet06() throws Exception {
        // eXg?s
        Object object = this.formEx.get("hogeStringArray", 0);

        // eXgmF
        assertEquals("data1", object);
    }

    /**
     * testGet07()
     * <br><br>
     *
     * (??n)
     * <br>
     * _?FC
     * <br><br>
     * l?F(?) name:"hogeStringArray"<br>
     *         (?) index:10<br>
     *         (?) fieldNamewtB?[h:Stringz^:["data1", "data2", "data3", "data4"]<br>
     *
     * <br>
     * l?F(l) Object:null<br>
     *
     * <br>
     * namez^tB?[h??AIndex10??AnullmF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testGet07() throws Exception {
        // eXg?s
        Object object = this.formEx.get("hogeStringArray", 10);

        // eXgmF
        assertNull(object);
    }

    /**
     * testGet08()
     * <br><br>
     *
     * (??n)
     * <br>
     * _?FC
     * <br><br>
     * l?F(?) name:"hogeList"<br>
     *         (?) index:-1<br>
     *         (?) fieldNamewtB?[h:List^:["data1","data2", "data3", "data4"]<br>
     *
     * <br>
     * l?F(l) Object:null<br>
     *
     * <br>
     * nameList^tB?[h??AIndex-1??AnullmF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testGet08() throws Exception {
        // eXg?s
        Object object = this.formEx.get("hogeList", -1);

        // eXgmF
        assertNull(object);
    }

    /**
     * testGet09() <br>
     * <br>
     *
     * (??n)
     * <br>
     * _?FC
     * <br><br>
     * l?F(?) name:"hogeList"<br>
     *         (?) index:0<br>
     *         (?) fieldNamewtB?[h:List^:["data1","data2", "data3", "data4"]<br>
     *
     * <br>
     * l?F(l) Object:"data1"<br>
     *
     * <br>
     * nameList^tB?[h??AIndex0??AlmF?B <br>
     *
     * @throws Exception
     *             ?\bh?O
     */
    public void testGet09() throws Exception {
        // eXg?s
        Object object = this.formEx.get("hogeList", 0);

        // eXgmF
        assertEquals("data1", object);
    }

    /**
     * testGet10()
     * <br><br>
     *
     * (??n)
     * <br>
     * _?FC
     * <br><br>
     * l?F(?) name:"hogeList"<br>
     *         (?) index:10<br>
     *         (?) fieldNamewtB?[h:List^:["data1","data2", "data3", "data4"]<br>
     *
     * <br>
     * l?F(l) Object:null<br>
     *
     * <br>
     * nameList^tB?[h??AIndex10??AnullmF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testGet10() throws Exception {
        // eXg?s
        Object object = this.formEx.get("hogeList", 10);

        // eXgmF
        assertNull(object);
    }

    /**
     * testGet11()
     * <br><br>
     *
     * (??n)
     * <br>
     * _?FC
     * <br><br>
     * l?F(?) name:"hogeIntArray"<br>
     *         (?) index:-1<br>
     *         (?) fieldNamewtB?[h:intz^:[-100, 0, 10, 111]<br>
     *
     * <br>
     * l?F(l) Object:null<br>
     *
     * <br>
     * namez^tB?[h??AIndex-1??AnullmF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testGet11() throws Exception {
        // eXg?s
        Object object = this.formEx.get("hogeIntArray", -1);

        // eXgmF
        assertNull(object);
    }

    /**
     * testGet12()
     * <br><br>
     *
     * (??n)
     * <br>
     * _?FC
     * <br><br>
     * l?F(?) name:"hogeIntArray"<br>
     *         (?) index:0<br>
     *         (?) fieldNamewtB?[h:intz^:[-100, 0, 10, 111]<br>
     *
     * <br>
     * l?F(l) Object:-100<br>
     *
     * <br>
     * namez^tB?[h??AIndex0??AlmF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testGet12() throws Exception {
        // eXg?s
        Object object = this.formEx.get("hogeIntArray", 0);

        // eXgmF
        assertEquals(-100, object);
    }

    /**
     * testGet13()
     * <br><br>
     *
     * (??n)
     * <br>
     * _?FC
     * <br><br>
     * l?F(?) name:"hogeIntArray"<br>
     *         (?) index:10<br>
     *         (?) fieldNamewtB?[h:intz^:[-100, 0, 10, 111]<br>
     *
     * <br>
     * l?F(l) Object:null<br>
     *
     * <br>
     * namez^tB?[h??AIndex10??AnullmF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testGet13() throws Exception {
        // eXg?s
        Object object = this.formEx.get("hogeIntArray", 10);

        // eXgmF
        assertNull(object);
    }

    /**
     * testGetIndexCount01()
     * <br><br>
     *
     * (??n)
     * <br>
     * _?FC
     * <br><br>
     * l?F(?) fieldName:null<br>
     *
     * <br>
     * l?F(l) int:0<br>
     *
     * <br>
     * fieldNamenull??A0mF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testGetIndexCount01() throws Exception {
        // eXg?s
        int i = this.formEx.getIndexCount(null);

        // eXgmF
        assertEquals(0, i);
    }

    /**
     * testGetIndexCount02()
     * <br><br>
     *
     * (??n)
     * <br>
     * _?FC
     * <br><br>
     * l?F(?) fieldName:<br>
     *
     * <br>
     * l?F(l) int:0<br>
     *
     * <br>
     * fieldName??A0mF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testGetIndexCount02() throws Exception {
        // eXg?s
        int i = this.formEx.getIndexCount("");

        // eXgmF
        assertEquals(0, i);
    }

    /**
     * testGetIndexCount03()
     * <br><br>
     *
     * (??n)
     * <br>
     * _?FC
     * <br><br>
     * l?F(?) fieldName:"foo"?i?tB?[h?j<br>
     *
     * <br>
     * l?F(l) int:0<br>
     *
     * <br>
     * fieldNmae?tB?[h??A0mF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testGetIndexCount03() throws Exception {
        // eXg?s
        int i = this.formEx.getIndexCount("foo");

        // eXgmF
        assertEquals(0, i);
    }

    /**
     * testGetIndexCount04()
     * <br><br>
     *
     * (??n)
     * <br>
     * _?FC
     * <br><br>
     * l?F(?) fieldName:"hogeString"<br>
     *         (?) fieldNamewtB?[h:String^:"data0"<br>
     *
     * <br>
     * l?F(l) int:1<br>
     *
     * <br>
     * fieldNamezListtB?[h??A1mF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testGetIndexCount04() throws Exception {
        // eXg?s
        int i = this.formEx.getIndexCount("hogeString");

        // eXgmF
        assertEquals(1, i);
    }

    /**
     * testGetIndexCount05()
     * <br><br>
     *
     * (??n)
     * <br>
     * _?FC
     * <br><br>
     * l?F(?) fieldName:"hogeStringArray"<br>
     *         (?) fieldNamewtB?[h:Stringz^:["data1", "data2", "data3", "data4"]<br>
     *
     * <br>
     * l?F(l) int:4<br>
     *
     * <br>
     * fieldNamez^tB?[h??A?lmF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testGetIndexCount05() throws Exception {
        // eXg?s
        int i = this.formEx.getIndexCount("hogeStringArray");

        // eXgmF
        assertEquals(4, i);
    }

    /**
     * testGetIndexCount06()
     * <br><br>
     *
     * (??n)
     * <br>
     * _?FC
     * <br><br>
     * l?F(?) fieldName:"hogeList"<br>
     *         (?) fieldNamewtB?[h:List^:["data1","data2", "data3", "data4"]<br>
     *
     * <br>
     * l?F(l) int:4<br>
     *
     * <br>
     * fieldNameList^tB?[h??A?lmF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testGetIndexCount06() throws Exception {
        // eXg?s
        int i = this.formEx.getIndexCount("hogeList");

        // eXgmF
        assertEquals(4, i);
    }

    /**
     * testGetIndexCount07()
     * <br><br>
     *
     * (??n)
     * <br>
     * _?FC
     * <br><br>
     * l?F(?) fieldName:"hogeMap"<br>
     *         (?) fieldNamewtB?[h:Map^:[field1="data1", field2="data2", field3="data3", field4=data4"]<br>
     *
     * <br>
     * l?F(l) int:4<br>
     *
     * <br>
     * fieldNameMap^tB?[h??A?lmF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testGetIndexCount07() throws Exception {
        // eXg?s
        int i = this.formEx.getIndexCount("hogeMap");

        // eXgmF
        assertEquals(4, i);
    }

    /**
     * testReset01()
     * <br><br>
     *
     * (??n)
     * <br>
     * _?FC
     * <br><br>
     * l?F(?) mapping:not null<br>
     *         (?) request:ftHgW?[i[NGXgIuWFNg<br>
     *         (?) resetter:null<br>
     *
     * <br>
     * l?F(l) void:?|<br>
     *         (?) DynaValidatorActionFormEx_ResetterStub01#reset():?s<br>
     *         (?) ?O:?|<br>
     *
     * <br>
     * ftHgW?[i[NGXgIuWFNg??AResetternull???A?ImF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testReset01() throws Exception {
        // NGXg??
        MockHttpServletRequest request = new MockHttpServletRequest();
        // ZbV??
        MockHttpSession session = new MockHttpSession();
        // ReLXg??
        MockServletContext context = new MockServletContext();
        // ANVT?[ubg??
        DynaValidatorActionFormEx_ActionServletStub01 servlet = new DynaValidatorActionFormEx_ActionServletStub01();
        // vtBbNX??
        String prefix = "";
        // W?[????
        ModuleConfig moduleConfig = new ModuleConfigImpl(prefix);
        // }bsO???
        ActionMapping mapping = new ActionMapping();

        // ?
        request.setSession(session);
        request.setAttribute(Globals.MODULE_KEY, moduleConfig);
        session.setServletContext(context);
        context.setAttribute(Resetter.RESETTER_KEY + prefix, null);
        context.setAttribute(Globals.MODULE_KEY, moduleConfig);
        this.formEx.setServlet(servlet);
        servlet.setContext(context);

        // eXg?s
        this.formEx.reset(mapping, request);
    }

    /**
     * testReset02() <br>
     * <br>
     *
     * (??n)
     * <br>
     * _?FC
     * <br><br>
     * l?F(?) mapping:not null<br>
     *         (?) request:ftHgW?[i[NGXgIuWFNg<br>
     *         (?) resetter:ResetterOIuWFNg<br>
     *
     * <br>
     * l?F(l) void:?|<br>
     *         (?) DynaValidatorActionFormEx_ResetterStub01#reset():?s<br>
     *         (?) ?O:??O?<br>
     *                    G?[?O?F""<br>
     *                    ?O?<br>
     *                    ClassCastException<br>
     *
     * <br>
     * ftHgW?[i[NGXgIuWFNg??AResetterOIuWFNg???A?O?o?A?ImF?B
     * <br>
     *
     * @throws Exception
     *             ?\bh?O
     */
    public void testReset02() throws Exception {
        // NGXg??
        MockHttpServletRequest request = new MockHttpServletRequest();
        // ZbV??
        MockHttpSession session = new MockHttpSession();
        // ReLXg??
        MockServletContext context = new MockServletContext();
        // ANVT?[ubg??
        DynaValidatorActionFormEx_ActionServletStub01 servlet = new DynaValidatorActionFormEx_ActionServletStub01();
        // vtBbNX??
        String prefix = "";
        // W?[????
        ModuleConfig moduleConfig = new ModuleConfigImpl(prefix);
        // }bsO???
        ActionMapping mapping = new ActionMapping();

        // ?
        request.setSession(session);
        request.setAttribute(Globals.MODULE_KEY, moduleConfig);
        session.setServletContext(context);
        context.setAttribute(Resetter.RESETTER_KEY + prefix, new Object());
        context.setAttribute(Globals.MODULE_KEY, moduleConfig);
        this.formEx.setServlet(servlet);
        servlet.setContext(context);

        // eXg?s
        this.formEx.reset(mapping, request);

        // eXgmF
        assertTrue(LogUTUtil.checkError("", new ClassCastException()));
    }

    /**
     * testReset03() <br>
     * <br>
     *
     * (??n)
     * <br>
     * _?FC
     * <br><br>
     * l?F(?) mapping:not null<br>
     *         (?) request:ftHgW?[i[NGXgIuWFNg<br>
     *         (?) resetter:ResetterIuWFNg?iDynaValidatorActionFormEx_ResetterStub01?j<br>
     *
     * <br>
     * l?F(l) void:?|<br>
     *         (?) DynaValidatorActionFormEx_ResetterStub01#reset():?s<br>
     *         (?) ?O:?|<br>
     *
     * <br>
     * ftHgW?[i[NGXgIuWFNg??AresetterResetterIuWFNg???Areset()?\bhmF?B
     * <br>
     *
     * @throws Exception
     *             ?\bh?O
     */
    public void testReset03() throws Exception {
        // NGXg??
        MockHttpServletRequest request = new MockHttpServletRequest();
        // ZbV??
        MockHttpSession session = new MockHttpSession();
        // ReLXg??
        MockServletContext context = new MockServletContext();
        // ANVT?[ubg??
        DynaValidatorActionFormEx_ActionServletStub01 servlet = new DynaValidatorActionFormEx_ActionServletStub01();
        // vtBbNX??
        String prefix = "";
        // W?[????
        ModuleConfig moduleConfig = new ModuleConfigImpl(prefix);
        // }bsO???
        ActionMapping mapping = new ActionMapping();
        // Zb^?[??
        ResetterImpl resetter = new DynaValidatorActionFormEx_ResetterStub01();

        // ?
        request.setSession(session);
        request.setAttribute(Globals.MODULE_KEY, moduleConfig);
        session.setServletContext(context);
        context.setAttribute(Resetter.RESETTER_KEY + prefix, resetter);
        context.setAttribute(Globals.MODULE_KEY, moduleConfig);
        this.formEx.setServlet(servlet);
        servlet.setContext(context);

        // eXg?s
        this.formEx.reset(mapping, request);

        // eXgmF
        assertNotNull(request.getAttribute("SUCCESS"));
    }

    /**
     * testReset04() <br>
     * <br>
     *
     * (??n)
     * <br>
     * _?FC
     * <br><br>
     * l?F(?) mapping:not null<br>
     *         (?) request:TuW?[i[NGXgIuWFNg<br>
     *         (?) resetter:null<br>
     *
     * <br>
     * l?F(l) void:?|<br>
     *         (?) DynaValidatorActionFormEx_ResetterStub01#reset():?s<br>
     *         (?) ?O:?|<br>
     *
     * <br>
     * TuW?[i[NGXgIuWFNg??AResetternull???A?ImF?B <br>
     *
     * @throws Exception
     *             ?\bh?O
     */
    public void testReset04() throws Exception {
        // NGXg??
        MockHttpServletRequest request = new MockHttpServletRequest();
        // ZbV??
        MockHttpSession session = new MockHttpSession();
        // ReLXg??
        MockServletContext context = new MockServletContext();
        // ANVT?[ubg??
        DynaValidatorActionFormEx_ActionServletStub01 servlet = new DynaValidatorActionFormEx_ActionServletStub01();
        // vtBbNX??
        String prefix = "sub1";
        // W?[????
        ModuleConfig moduleConfig = new ModuleConfigImpl(prefix);
        // }bsO???
        ActionMapping mapping = new ActionMapping();

        // ?
        request.setSession(session);
        request.setAttribute(Globals.MODULE_KEY, moduleConfig);
        session.setServletContext(context);
        context.setAttribute(Resetter.RESETTER_KEY + prefix, null);
        context.setAttribute(Globals.MODULE_KEY, moduleConfig);
        this.formEx.setServlet(servlet);
        servlet.setContext(context);

        // eXg?s
        this.formEx.reset(mapping, request);
    }

    /**
     * testReset05() <br>
     * <br>
     *
     * (??n)
     * <br>
     * _?FC
     * <br><br>
     * l?F(?) mapping:not null<br>
     *         (?) request:TuW?[i[NGXgIuWFNg<br>
     *         (?) resetter:ResetterOIuWFNg<br>
     *
     * <br>
     * l?F(l) void:?|<br>
     *         (?) DynaValidatorActionFormEx_ResetterStub01#reset():?s<br>
     *         (?) ?O:??O?<br>
     *                    G?[?O?F""<br>
     *                    ?O?<br>
     *                    ClassCastException<br>
     *
     * <br>
     * TuW?[i[NGXgIuWFNg??AResetterOIuWFNg???A?O?o?A?ImF?B
     * <br>
     *
     * @throws Exception
     *             ?\bh?O
     */
    public void testReset05() throws Exception {
        // NGXg??
        MockHttpServletRequest request = new MockHttpServletRequest();
        // ZbV??
        MockHttpSession session = new MockHttpSession();
        // ReLXg??
        MockServletContext context = new MockServletContext();
        // ANVT?[ubg??
        DynaValidatorActionFormEx_ActionServletStub01 servlet = new DynaValidatorActionFormEx_ActionServletStub01();
        // vtBbNX??
        String prefix = "sub1";
        // W?[????
        ModuleConfig moduleConfig = new ModuleConfigImpl(prefix);
        // }bsO???
        ActionMapping mapping = new ActionMapping();

        // ?
        request.setSession(session);
        request.setAttribute(Globals.MODULE_KEY, moduleConfig);
        session.setServletContext(context);
        context.setAttribute(Resetter.RESETTER_KEY + prefix, new Object());
        context.setAttribute(Globals.MODULE_KEY, moduleConfig);
        this.formEx.setServlet(servlet);
        servlet.setContext(context);

        // eXg?s
        this.formEx.reset(mapping, request);

        // eXgmF
        assertTrue(LogUTUtil.checkError("", new ClassCastException()));
    }

    /**
     * testReset06() <br>
     * <br>
     *
     * (??n)
     * <br>
     * _?FC
     * <br><br>
     * l?F(?) mapping:not null<br>
     *         (?) request:TuW?[i[NGXgIuWFNg<br>
     *         (?) resetter:ResetterIuWFNg?iDynaValidatorActionFormEx_ResetterStub01?j<br>
     *
     * <br>
     * l?F(l) void:?|<br>
     *         (?) DynaValidatorActionFormEx_ResetterStub01#reset():?s<br>
     *         (?) ?O:?|<br>
     *
     * <br>
     * TuW?[i[NGXgIuWFNg??AresetterResetterIuWFNg???Areset()?\bhmF?B?B
     * <br>
     *
     * @throws Exception
     *             ?\bh?O
     */
    public void testReset06() throws Exception {
        // NGXg??
        MockHttpServletRequest request = new MockHttpServletRequest();
        // ZbV??
        MockHttpSession session = new MockHttpSession();
        // ReLXg??
        MockServletContext context = new MockServletContext();
        // ANVT?[ubg??
        DynaValidatorActionFormEx_ActionServletStub01 servlet = new DynaValidatorActionFormEx_ActionServletStub01();
        // vtBbNX??
        String prefix = "sub1";
        // W?[????
        ModuleConfig moduleConfig = new ModuleConfigImpl(prefix);
        // }bsO???
        ActionMapping mapping = new ActionMapping();
        // Zb^?[??
        ResetterImpl resetter = new DynaValidatorActionFormEx_ResetterStub01();

        // ?
        request.setSession(session);
        request.setAttribute(Globals.MODULE_KEY, moduleConfig);
        session.setServletContext(context);
        context.setAttribute(Resetter.RESETTER_KEY + prefix, resetter);
        context.setAttribute(Globals.MODULE_KEY, moduleConfig);
        this.formEx.setServlet(servlet);
        servlet.setContext(context);

        // eXg?s
        this.formEx.reset(mapping, request);

        // eXgmF
        assertNotNull(request.getAttribute("SUCCESS"));
    }

    /**
     * testSetStringintObject01()
     * <br><br>
     *
     * (?n)
     * <br>
     * _?FG
     * <br><br>
     * l?F(?) name:null<br>
     *         (?) index:0<br>
     *         (?) value:"hello"<br>
     *
     * <br>
     * l?F(?) O:NullPointerException?F<br>
     *                    ?bZ?[W?F"No indexed value for 'null[0]'"<br>
     *         (?) namewtB?[h:?|<br>
     *
     * <br>
     * namenull??ANullPointerExceptionX??[mF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testSetStringintObject01() throws Exception {
        //eXg?s
        try {
            this.formEx.set(null, 0, "hello");
            fail();
        } catch (NullPointerException e) {
            //eXgmF
            assertEquals("No indexed value for 'null[0]'", e.getMessage());
        }
    }

    /**
     * testSetStringintObject02()
     * <br><br>
     *
     * (?n)
     * <br>
     * _?FG
     * <br><br>
     * l?F(?) name:<br>
     *         (?) index:0<br>
     *         (?) value:"hello"<br>
     *
     * <br>
     * l?F(?) O:NullPointerException?F<br>
     *                    ?bZ?[W?F"No indexed value for '[0]'"<br>
     *         (?) namewtB?[h:?|<br>
     *
     * <br>
     * name??ANullPointerExceptionX??[mF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testSetStringintObject02() throws Exception {
        //eXg?s
        try {
            this.formEx.set("", 0, "hello");
            fail();
        } catch (NullPointerException e) {
            //eXgmF
            assertEquals("No indexed value for '[0]'", e.getMessage());
        }
    }

    /**
     * testSetStringintObject03()
     * <br><br>
     *
     * (?n)
     * <br>
     * _?FG
     * <br><br>
     * l?F(?) name:"foo"?i?tB?[h?j<br>
     *         (?) index:0<br>
     *         (?) value:"hello"<br>
     *
     * <br>
     * l?F(?) O:NullPointerException?F<br>
     *                    ?bZ?[W?F"No indexed value for 'foo[0]'"<br>
     *         (?) namewtB?[h:?|<br>
     *
     * <br>
     * name?tB?[h??ANullPointerExceptionX??[mF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testSetStringintObject03() throws Exception {
        //eXg?s
        try {
            this.formEx.set("foo", 0, "hello");
            fail();
        } catch (NullPointerException e) {
            //eXgmF
            assertEquals("No indexed value for 'foo[0]'", e.getMessage());
        }
    }

    /**
     * testSetStringintObject04()
     * <br><br>
     *
     * (?n)
     * <br>
     * _?FG
     * <br><br>
     * l?F(?) name:"hogeString"<br>
     *         (?) index:0<br>
     *         (?) value:"hello"<br>
     *
     * <br>
     * l?F(?) O:IllegalArgumentException?F<br>
     *                    ?bZ?[W?F"Non-indexed property for 'hogeString[0]'"<br>
     *         (?) namewtB?[h:?|<br>
     *
     * <br>
     * nameString^tB?[h??AIllegalArgumentExceptionX??[mF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testSetStringintObject04() throws Exception {
        //eXg?s
        try {
            this.formEx.set("hogeString", 0, "hello");
            fail();
        } catch (IllegalArgumentException e) {
            //eXgmF
            assertEquals("Non-indexed property for 'hogeString[0]'", e.getMessage());
        }
    }

    /**
     * testSetStringintObject05()
     * <br><br>
     *
     * (?n)
     * <br>
     * _?FG
     * <br><br>
     * l?F(?) name:"hogeStringArray"<br>
     *         (?) index:-1<br>
     *         (?) value:"hello"<br>
     *         (?) namewtB?[h:Stringz^:["data1", "data2", "data3", "data4"]<br>
     *
     * <br>
     * l?F(?) O:ArrayIndexOutOfBoundsException<br>
     *         (?) namewtB?[h:?|<br>
     *
     * <br>
     * nameString[]^tB?[h??AIndex-1??AArrayIndexOutOfBoundsExceptionX??[mF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testSetStringintObject05() throws Exception {
        //eXg?s
        try {
            this.formEx.set("hogeStringArray", -1, "hello");
            fail();
        } catch (ArrayIndexOutOfBoundsException e) {
            //eXgmF
        }
    }

    /**
     * testSetStringintObject06()
     * <br><br>
     *
     * (??n)
     * <br>
     * _?FC
     * <br><br>
     * l?F(?) name:"hogeStringArray"<br>
     *         (?) index:0<br>
     *         (?) value:null<br>
     *         (?) namewtB?[h:Stringz^:["data1", "data2", "data3", "data4"]<br>
     *
     * <br>
     * l?F(?) namewtB?[h:hogeStringArray[0] = null<br>
     *
     * <br>
     * nameString[]^tB?[h??AIndex0??AY0?valuei[mF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testSetStringintObject06() throws Exception {

        //eXg?s
        this.formEx.set("hogeStringArray", 0, null);

        //eXgmF
        String[] resultArray = (String[]) ((HashMap) UTUtil.getPrivateField(this.formEx, "dynaValues"))
                .get("hogeStringArray");
        assertNull(resultArray[0]);
    }

    /**
     * testSetStringintObject07()
     * <br><br>
     *
     * (??n)
     * <br>
     * _?FC
     * <br><br>
     * l?F(?) name:"hogeStringArray"<br>
     *         (?) index:1<br>
     *         (?) value:"hello"<br>
     *         (?) namewtB?[h:Stringz^:["data1", "data2", "data3", "data4"]<br>
     *
     * <br>
     * l?F(?) namewtB?[h:hogeStringArray[1] = "hello"<br>
     *
     * <br>
     * nameString[]^tB?[h??AIndex1??AY1?valuei[mF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testSetStringintObject07() throws Exception {
        //eXg?s
        this.formEx.set("hogeStringArray", 1, "hello");

        //eXgmF
        String[] resultArray = (String[]) ((HashMap) UTUtil.getPrivateField(this.formEx, "dynaValues"))
                .get("hogeStringArray");
        assertEquals("hello", resultArray[1]);
    }

    /**
     * testSetStringintObject08()
     * <br><br>
     *
     * (?n)
     * <br>
     * _?FG
     * <br><br>
     * l?F(?) name:"hogeStringArray"<br>
     *         (?) index:2<br>
     *         (?) value:Integer(5)<br>
     *         (?) namewtB?[h:Stringz^:["data1", "data2", "data3", "data4"]<br>
     *
     * <br>
     * l?F(?) O:IllegalArgumentException<br>
     *         (?) namewtB?[h:?|<br>
     *
     * <br>
     * nameString[]^tB?[h??AIndex2??AvaluesK?^???AIllegalArgumentExceptionX??[mF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testSetStringintObject08() throws Exception {
        //eXg?s
        try {
            this.formEx.set("hogeStringArray", 2, new Integer(5));
            fail();
        } catch (IllegalArgumentException e) {
            //eXgmF;
        }
    }

    /**
     * testSetStringintObject09()
     * <br><br>
     *
     * (??n)
     * <br>
     * _?FC
     * <br><br>
     * l?F(?) name:"hogeStringArray"<br>
     *         (?) index:10<br>
     *         (?) value:null<br>
     *         (?) namewtB?[h:Stringz^:["data1", "data2", "data3", "data4"]<br>
     *
     * <br>
     * l?F(?) namewtB?[h:hogeStringArray[10] = null<br>
     *
     * <br>
     * nameTCY4String[]^tB?[h??AIndex10??AY10?valuei[mF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testSetStringintObject09() throws Exception {
        //eXg?s
        this.formEx.set("hogeStringArray", 10, null);

        //eXgmF
        String[] resultArray = (String[]) ((HashMap) UTUtil.getPrivateField(this.formEx, "dynaValues"))
                .get("hogeStringArray");
        assertNull(resultArray[10]);
    }

    /**
     * testSetStringintObject10()
     * <br><br>
     *
     * (??n)
     * <br>
     * _?FC
     * <br><br>
     * l?F(?) name:"hogeStringArray"<br>
     *         (?) index:11<br>
     *         (?) value:"hello"<br>
     *         (?) namewtB?[h:Stringz^:["data1", "data2", "data3", "data4"]<br>
     *
     * <br>
     * l?F(?) namewtB?[h:hogeStringArray[11] = "hello"<br>
     *
     * <br>
     * nameTCY4String[]^tB?[h??AIndex11??AY11?valuei[mF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testSetStringintObject10() throws Exception {
        //eXg?s
        this.formEx.set("hogeStringArray", 11, "hello");

        //eXgmF
        String[] resultArray = (String[]) ((HashMap) UTUtil.getPrivateField(this.formEx, "dynaValues"))
                .get("hogeStringArray");
        assertEquals("hello", resultArray[11]);
    }

    /**
     * testSetStringintObject11()
     * <br><br>
     *
     * (?n)
     * <br>
     * _?FG
     * <br><br>
     * l?F(?) name:"hogeStringArray"<br>
     *         (?) index:12<br>
     *         (?) value:Integer(5)<br>
     *         (?) namewtB?[h:Stringz^:["data1", "data2", "data3", "data4"]<br>
     *
     * <br>
     * l?F(?) O:IllegalArgumentException<br>
     *         (?) namewtB?[h:?|<br>
     *
     * <br>
     * nameTCY4String[]^tB?[h??AIndex12??AvaluesK?^???AIllegalArgumentExceptionX??[mF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testSetStringintObject11() throws Exception {
        //eXg?s
        try {
            this.formEx.set("hogeStringArray", 12, new Integer(5));
            fail();
        } catch (IllegalArgumentException e) {
            //eXgmF
        }
    }

    /**
     * testSetStringintObject12()
     * <br><br>
     *
     * (?n)
     * <br>
     * _?FG
     * <br><br>
     * l?F(?) name:"hogeList"<br>
     *         (?) index:-1<br>
     *         (?) value:"hello"<br>
     *         (?) namewtB?[h:List^:["data1","data2", "data3", "data4"]<br>
     *
     * <br>
     * l?F(?) O:IndexOutOfBoundsException<br>
     *         (?) namewtB?[h:?|<br>
     *
     * <br>
     * nameList^tB?[h??AIndex-1??AIndexOutOfBoundsExceptionX??[mF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testSetStringintObject12() throws Exception {
        //eXg?s
        try {
            this.formEx.set("hogeList", -1, "hello");
            fail();
        } catch (IndexOutOfBoundsException e) {
            //eXgmF
        }
    }

    /**
     * testSetStringintObject13()
     * <br><br>
     *
     * (??n)
     * <br>
     * _?FC
     * <br><br>
     * l?F(?) name:"hogeList"<br>
     *         (?) index:0<br>
     *         (?) value:null<br>
     *         (?) namewtB?[h:List^:["data1","data2", "data3", "data4"]<br>
     *
     * <br>
     * l?F(?) namewtB?[h:hogeList.get(0) = null<br>
     *
     * <br>
     * nameList^tB?[h??AIndex0??AY0?valuei[mF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testSetStringintObject13() throws Exception {
        // O??mF
        assertNotNull(this.formEx.get("hogeList", 0));

        //eXg?s
        this.formEx.set("hogeList", 0, null);

        //eXgmF
        List resultList = (List) ((HashMap) UTUtil.getPrivateField(this.formEx, "dynaValues")).get("hogeList");
        assertNull(resultList.get(0));
    }

    /**
     * testSetStringintObject14()
     * <br><br>
     *
     * (??n)
     * <br>
     * _?FC
     * <br><br>
     * l?F(?) name:"hogeList"<br>
     *         (?) index:1<br>
     *         (?) value:"hello"<br>
     *         (?) namewtB?[h:List^:["data1","data2", "data3", "data4"]<br>
     *
     * <br>
     * l?F(?) namewtB?[h:hogeList.get(1) = "hello"<br>
     *
     * <br>
     * nameList^tB?[h??AIndex1??AY1?valuei[mF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testSetStringintObject14() throws Exception {
        //eXg?s
        this.formEx.set("hogeList", 1, "hello");

        //eXgmF
        List resultList = (List) ((HashMap) UTUtil.getPrivateField(this.formEx, "dynaValues")).get("hogeList");
        assertEquals("hello", resultList.get(1));
    }

    /**
     * testSetStringintObject15()
     * <br><br>
     *
     * (??n)
     * <br>
     * _?FC
     * <br><br>
     * l?F(?) name:"hogeList"<br>
     *         (?) index:2<br>
     *         (?) value:Integer(5)<br>
     *         (?) namewtB?[h:List^:["data1","data2", "data3", "data4"]<br>
     *
     * <br>
     * l?F(?) namewtB?[h:hogeList.get(2) = Integer(5)<br>
     *
     * <br>
     * nameList^tB?[h??AIndex2??AY2?valuei[mF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testSetStringintObject15() throws Exception {
        //eXg?s
        this.formEx.set("hogeList", 2, new Integer(5));

        //eXgmF
        List resultList = (List) ((HashMap) UTUtil.getPrivateField(this.formEx, "dynaValues")).get("hogeList");
        assertEquals(new Integer(5), resultList.get(2));
    }

    /**
     * testSetStringintObject16()
     * <br><br>
     *
     * (??n)
     * <br>
     * _?FC
     * <br><br>
     * l?F(?) name:"hogeList"<br>
     *         (?) index:10<br>
     *         (?) value:null<br>
     *         (?) namewtB?[h:List^:["data1","data2", "data3", "data4"]<br>
     *
     * <br>
     * l?F(?) namewtB?[h:hogeList.get(10) = null<br>
     *
     * <br>
     * nameTCY4List^tB?[h??AIndex10??AY10?valuei[mF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testSetStringintObject16() throws Exception {
        //eXg?s
        this.formEx.set("hogeList", 10, null);

        //eXgmF
        List resultList = (List) ((HashMap) UTUtil.getPrivateField(this.formEx, "dynaValues")).get("hogeList");
        assertNull(resultList.get(10));
    }

    /**
     * testSetStringintObject17()
     * <br><br>
     *
     * (??n)
     * <br>
     * _?FC
     * <br><br>
     * l?F(?) name:"hogeList"<br>
     *         (?) index:11<br>
     *         (?) value:"hello"<br>
     *         (?) namewtB?[h:List^:["data1","data2", "data3", "data4"]<br>
     *
     * <br>
     * l?F(?) namewtB?[h:hogeList.get(11) = "hello"<br>
     *
     * <br>
     * nameTCY4List^tB?[h??AIndex11??AY11?valuei[mF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testSetStringintObject17() throws Exception {
        //eXg?s
        this.formEx.set("hogeList", 11, "hello");

        //eXgmF
        List resultList = (List) ((HashMap) UTUtil.getPrivateField(this.formEx, "dynaValues")).get("hogeList");
        assertEquals("hello", resultList.get(11));
    }

    /**
     * testSetStringintObject18()
     * <br><br>
     *
     * (??n)
     * <br>
     * _?FC
     * <br><br>
     * l?F(?) name:"hogeList"<br>
     *         (?) index:12<br>
     *         (?) value:Integer(5)<br>
     *         (?) namewtB?[h:List^:["data1","data2", "data3", "data4"]<br>
     *
     * <br>
     * l?F(?) namewtB?[h:hogeList.get(12) = Integer(5)<br>
     *
     * <br>
     * nameTCY4List^tB?[h??AIndex12??AY12?valuei[mF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testSetStringintObject18() throws Exception {
        //eXg?s
        this.formEx.set("hogeList", 12, new Integer(5));

        //eXgmF
        List resultList = (List) ((HashMap) UTUtil.getPrivateField(this.formEx, "dynaValues")).get("hogeList");
        assertEquals(new Integer(5), resultList.get(12));
    }

    /**
     * testSetStringintObject19()
     * <br><br>
     *
     * (?n)
     * <br>
     * _?FG
     * <br><br>
     * l?F(?) name:"hogeIntArray"<br>
     *         (?) index:-1<br>
     *         (?) value:"hello"<br>
     *         (?) namewtB?[h:intz^:[-100, 0, 10, 111]<br>
     *
     * <br>
     * l?F(?) O:ArrayIndexOutOfBoundsException<br>
     *         (?) namewtB?[h:?|<br>
     *
     * <br>
     * nameint[]^tB?[h??AArrayIndexOutOfBoundsExceptionX??[mF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testSetStringintObject19() throws Exception {
        //eXg?s
        try {
            this.formEx.set("hogeIntArray", -1, "hello");
            fail();
        } catch (ArrayIndexOutOfBoundsException e) {
            //eXgmF
        }
    }

    /**
     * testSetStringintObject20()
     * <br><br>
     *
     * (?n)
     * <br>
     * _?FG
     * <br><br>
     * l?F(?) name:"hogeIntArray"<br>
     *         (?) index:0<br>
     *         (?) value:null<br>
     *         (?) namewtB?[h:intz^:[-100, 0, 10, 111]<br>
     *
     * <br>
     * l?F(?) O:IllegalArgumentException<br>
     *         (?) namewtB?[h:?|<br>
     *
     * <br>
     * nameint[]^tB?[h??AIllegalArgumentExceptionX??[mF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testSetStringintObject20() throws Exception {
        //eXg?s
        try {
            this.formEx.set("hogeIntArray", 0, null);
            fail();
        } catch (IllegalArgumentException e) {
            //eXgmF
        }
    }

    /**
     * testSetStringintObject21()
     * <br><br>
     *
     * (??n)
     * <br>
     * _?FC
     * <br><br>
     * l?F(?) name:"hogeIntArray"<br>
     *         (?) index:1<br>
     *         (?) value:Integer(5)<br>
     *         (?) namewtB?[h:intz^:[-100, 0, 10, 111]<br>
     *
     * <br>
     * l?F(?) namewtB?[h:hogeStringArray[1] = Integer(5)<br>
     *
     * <br>
     * nameint[]^tB?[h??AIndex"1"??AY"1"valuei[mF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testSetStringintObject21() throws Exception {
        //eXg?s
        this.formEx.set("hogeIntArray", 1, new Integer(5));

        //eXgmF
        int[] resultArray = (int[]) ((HashMap) UTUtil.getPrivateField(this.formEx, "dynaValues"))
                .get("hogeIntArray");
        assertEquals(new Integer(5), (Integer) resultArray[1]);
    }

    /**
     * testSetStringintObject22()
     * <br><br>
     *
     * (?n)
     * <br>
     * _?FG
     * <br><br>
     * l?F(?) name:"hogeIntArray"<br>
     *         (?) index:2<br>
     *         (?) value:"hello"<br>
     *         (?) namewtB?[h:intz^:[-100, 0, 10, 111]<br>
     *
     * <br>
     * l?F(?) O:IllegalArgumentException<br>
     *         (?) namewtB?[h:?|<br>
     *
     * <br>
     * nameint[]^tB?[h??AIndex"2"??AvaluesK?^???AIllegalArgumentExceptionX??[mF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testSetStringintObject22() throws Exception {
        //eXg?s
        try {
            this.formEx.set("hogeIntArray", 2, "hello");
            fail();
        } catch (IllegalArgumentException e) {
            //eXgmF
        }
    }

    /**
     * testSetStringintObject23()
     * <br><br>
     *
     * (?n)
     * <br>
     * _?FG
     * <br><br>
     * l?F(?) name:"hogeIntArray"<br>
     *         (?) index:10<br>
     *         (?) value:null<br>
     *         (?) namewtB?[h:intz^:[-100, 0, 10, 111]<br>
     *
     * <br>
     * l?F(?) O:IllegalArgumentException<br>
     *         (?) namewtB?[h:?|<br>
     *
     * <br>
     * nameTCY"4"int[]^tB?[h??AIndex"10"??AIllegalArgumentExceptionX??[mF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testSetStringintObject23() throws Exception {
        //eXg?s
        try {
            this.formEx.set("hogeIntArray", 10, null);
            fail();
        } catch (IllegalArgumentException e) {
            //eXgmF
        }
    }

    /**
     * testSetStringintObject24()
     * <br><br>
     *
     * (??n)
     * <br>
     * _?FC
     * <br><br>
     * l?F(?) name:"hogeIntArray"<br>
     *         (?) index:11<br>
     *         (?) value:Integer(5)<br>
     *         (?) namewtB?[h:intz^:[-100, 0, 10, 111]<br>
     *
     * <br>
     * l?F(?) namewtB?[h:hogeStringArray[11] = Integer(5)<br>
     *
     * <br>
     * nameTCY"4"int[]^tB?[h??AIndex"11"??Avaluei[mF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testSetStringintObject24() throws Exception {
        //eXg?s
        this.formEx.set("hogeIntArray", 11, new Integer(5));

        //eXgmF
        int[] resultArray = (int[]) ((HashMap) UTUtil.getPrivateField(this.formEx, "dynaValues"))
                .get("hogeIntArray");
        assertEquals(new Integer(5), (Integer) resultArray[11]);
    }

    /**
     * testSetStringintObject25()
     * <br><br>
     *
     * (?n)
     * <br>
     * _?FG
     * <br><br>
     * l?F(?) name:"hogeIntArray"<br>
     *         (?) index:12<br>
     *         (?) value:"hello"<br>
     *         (?) namewtB?[h:intz^:[-100, 0, 10, 111]<br>
     *
     * <br>
     * l?F(?) O:IllegalArgumentException<br>
     *         (?) namewtB?[h:?|<br>
     *
     * <br>
     * nameTCY"4"int[]^tB?[h??AIndex"12"??AvaluesK?^???AIllegalArgumentExceptionX??[mF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testSetStringintObject25() throws Exception {
        //eXg?s
        try {
            this.formEx.set("hogeIntArray", 12, "hello");
        } catch (IllegalArgumentException e) {
            //eXgmF
        }
    }

    /**
     * testSetStringintObject26()
     * 
     * z`FbN?l?CfbNX?IllegalArgumentException??B
     * 
     * @throws Exception ?\bh?O
     */
    public void testSetStringintObject26() throws Exception {
        //eXg?s
        try {
            this.formEx.set("hogeIntArray", 10000, "hello");
            fail();
        } catch (Exception e) {
            //eXgmF
            assertEquals(IllegalArgumentException.class, e.getClass());
            assertEquals("index size is too long. : 10000", e.getMessage());
        }
    }

    /**
     * testSetStringintObject27()
     * 
     * Xg`FbN?l?CfbNX?IllegalArgumentException??B
     * 
     * @throws Exception ?\bh?O
     */
    public void testSetStringintObject27() throws Exception {
        //eXg?s
        try {
            this.formEx.set("hogeList", 10000, "hello");
            fail();
        } catch (Exception e) {
            //eXgmF
            assertEquals(IllegalArgumentException.class, e.getClass());
            assertEquals("index size is too long. : 10000", e.getMessage());
        }
    }

    /**
     * testIsModified01()
     * <br><br>
     *
     * (??n)
     * <br>
     * _?FA
     * <br><br>
     * l?F(?) :?|<br>
     *         (?) modified:true<br>
     *
     * <br>
     * l?F(l) boolean:true<br>
     *
     * <br>
     * i[modified???B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testIsModified01() throws Exception {
        // O??
        UTUtil.setPrivateField(this.formEx, "modified", true);

        // eXg{?E
        assertTrue(this.formEx.isModified());
    }

    /**
     * testSetModified01()
     * <br><br>
     *
     * (??n)
     * <br>
     * _?FA
     * <br><br>
     * l?F(?) modified:true<br>
     *         (?) modified:false<br>
     *
     * <br>
     * l?F(l) void:?|<br>
     *         (?) modified:true<br>
     *
     * <br>
     * ?wlmodified??i[?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testSetModified01() throws Exception {
        // eXg?s
        this.formEx.setModified(true);

        // eXg
        assertTrue((Boolean) UTUtil.getPrivateField(formEx, "modified"));
    }

    /**
     * testSetIndexedValue01()
     * <br><br>
     *
     * (??n)
     * <br>
     * _?FA
     * <br><br>
     * l?F(?) name:hoge<br>
     *                index:100<br>
     *                value:hoge<br>
     *
     * <br>
     * l?F(l) void:?|<br>
     *         (?) w?set?\bh?o<br>
     *
     * <br>
     * ?wlset?\bh?omF?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testSetIndexedValue01() throws Exception {
        DynaValidatorActionFormExStub01 stub = new DynaValidatorActionFormExStub01();
        stub.setIndexedValue("hoge", 100, "hoge");

        assertEquals("hoge", stub.name);
        assertEquals(100, stub.index);
        assertEquals("hoge", stub.value);
    }

    /**
     * testGetIndexedValue01()
     * <br><br>
     *
     * (??n)
     * <br>
     * _?FA
     * <br><br>
     * l?F(?) name:hoge<br>
     *                index:100<br>
     *
     * <br>
     * l?F(l) Object:"hoge"<br>
     *         (?) w?get?\bh?o<br>
     *
     * <br>
     * ?wlget?\bh?omF?B?B
     * <br>
     *
     * @throws Exception ?\bh?O
     */
    public void testGetIndexedValue01() throws Exception {
        DynaValidatorActionFormExStub01 stub = new DynaValidatorActionFormExStub01();
        Object result = stub.getIndexedValue("hoge", 100);

        assertEquals("hoge", stub.name);
        assertEquals(100, stub.index);
        assertEquals("called", result);
    }

}