use of org.apache.struts.mock.MockFormBean in project sonarqube by SonarSource.
the class TestTagUtils method test_Object_lookup_PageContext_String__String1.
// -- public Object lookup(PageContext pageContext, String name, String scopeName)
// lookup with null scope
public void test_Object_lookup_PageContext_String__String1() {
pageContext.setAttribute("bean", new MockFormBean());
try {
Object val = tagutils.lookup(pageContext, "bean", null);
assertNotNull((val));
} catch (JspException e) {
fail("bean not found:" + e.getMessage());
}
}
Aggregations