1 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 25 public class ActionFlowMetaDataTest extends TestCase { 26 27 31 public ActionFlowMetaDataTest(String name) { 32 super(name); 33 } 34 35 36 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 |