List of usage examples for org.springframework.web.util TagUtils SCOPE_PAGE
String SCOPE_PAGE
To view the source code for org.springframework.web.util TagUtils SCOPE_PAGE.
Click Source Link
From source file:org.openmrs.web.taglib.OpenmrsMessageTagTest.java
@Test @Verifies(value = "resolve a Tag with var not set to null", method = "doEndTag()") public void doEndTag_shouldEvaluateVarIfIsNotNull() throws Exception { final String varName = "Mary"; final String expectedOutput = "had a little lamb"; openmrsMessageTag.setVar(varName);//from w w w .j av a 2 s .co m DefaultMessageSourceResolvable message = new DefaultMessageSourceResolvable(new String[] { "test" }, expectedOutput); openmrsMessageTag.setMessage(message); openmrsMessageTag.setScope(TagUtils.SCOPE_PAGE); checkDoEndTagEvaluationOfVar(varName, PageContext.PAGE_SCOPE, expectedOutput); }