KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > inversoft > verge > mvc > controller > actionflow > test > ActionFlowMetaDataTest


1 /*
2  * Copyright (c) 2003, Inversoft
3  *
4  * This software is distribuable under the GNU Lesser General Public License.
5  * For more information visit gnu.org.
6  */

7 package com.inversoft.verge.mvc.controller.actionflow.test;
8
9
10 import junit.framework.TestCase;
11
12 import com.inversoft.verge.mvc.controller.actionflow.ActionFlowMetaData;
13 import com.inversoft.verge.mvc.controller.actionflow.ActionFlowURLTools;
14
15 /**
16  * <p>
17  * This class has the test cases for the action flow meta
18  * data
19  * </p>
20  *
21  * @author Brian Pontarelli
22  * @since 2.0
23  * @version 2.0
24  */

25 public class ActionFlowMetaDataTest extends TestCase {
26
27     /**
28      * Constructor for ActionFlowMetaDataTest.
29      * @param name
30      */

31     public ActionFlowMetaDataTest(String JavaDoc name) {
32         super(name);
33     }
34
35
36     /**
37      * Tests everything
38      */

39     public void testAll() {
40         ActionFlowMetaData md2 = new ActionFlowMetaData("n", "f", "e", "a", null);
41         md2.setValidationEnabled(false);
42         md2.setModelEnabled(false);
43         assertEquals("e", md2.getEntry());
44         assertEquals("n", md2.getNamespace());
45         assertEquals("a", md2.getAction());
46         assertEquals(Boolean.FALSE, md2.getExtraParams().get(ActionFlowURLTools.MODEL_ENABLED_PARAM));
47         assertEquals(Boolean.FALSE, md2.getExtraParams().get(ActionFlowURLTools.VALIDATION_ENABLED_PARAM));
48     }
49 }
Popular Tags