1 7 package com.inversoft.verge.mvc.view.jsp.model.test; 8 9 10 import com.inversoft.junit.JspTestCase; 11 import com.inversoft.verge.mvc.model.MetaData; 12 import com.inversoft.verge.mvc.model.ModelResolution; 13 import com.inversoft.verge.mvc.model.form.FormMetaData; 14 import com.inversoft.verge.mvc.view.jsp.model.ModelResolutionRegistry; 15 16 17 26 public class ModelResolutionRegistryTest extends JspTestCase { 27 28 32 public ModelResolutionRegistryTest(String name) { 33 super(name); 34 setLocal(true); 35 } 36 37 38 41 public void testAll() { 42 MetaData md = new FormMetaData("formBean", "test"); 43 ModelResolution mr = new ModelResolution(new Object (), md); 44 ModelResolutionRegistry.store("testKey", mr, pageContext); 45 46 assertEquals("Should be equal", mr, 47 ModelResolutionRegistry.lookup("testKey", pageContext)); 48 } 49 } 50 | Popular Tags |