MessagesPanelTag extends RequestContextAwareTag { public void setDisableHtmlEscape( String disableHtmlEscape) throws JspException { this.disableHtmlEscape = JspTagUtils.toBoolean(disableHtmlEscape, false, "disableHtmlEscape"); }  void setMessagesAttributeName(String messagesAttributeName); void setPanelClassName(String panelClassName); void setPanelTypeClassPrefix(String panelTypeClassPrefix); void setPanelElement(String panelElement); void setOuterElement(String outerElement); void setInnerElement(String innerElement); void setMessagesType(String messagesType); void setDisableHtmlEscape(
            String disableHtmlEscape);  }
@Test public void test29() throws Exception { request.setAttribute(ResultMessages.DEFAULT_MESSAGES_ATTRIBUTE_NAME, ResultMessages.error().add(ResultMessage.fromText("<div>"))); tag.setDisableHtmlEscape("true"); int ret = tag.doStartTag(); String expected = "<div class=\"alert alert-error\"><ul><li><div></li></ul></div>"; assertThat(getOutput(), is(expected)); assertThat(ret, is(TagSupport.EVAL_BODY_INCLUDE)); }
@Test public void test30() throws Exception { request.setAttribute(ResultMessages.DEFAULT_MESSAGES_ATTRIBUTE_NAME, ResultMessages.error().add(ResultMessage.fromText("<div>"))); tag.setDisableHtmlEscape("false"); int ret = tag.doStartTag(); String expected = "<div class=\"alert alert-error\"><ul><li>&lt;div&gt;</li></ul></div>"; assertThat(getOutput(), is(expected)); assertThat(ret, is(TagSupport.EVAL_BODY_INCLUDE)); }
@Test public void test31() throws Exception { request.setAttribute(ResultMessages.DEFAULT_MESSAGES_ATTRIBUTE_NAME, ResultMessages.error().add(ResultMessage.fromText("<div>"))); tag.setDisableHtmlEscape(null); int ret = tag.doStartTag(); String expected = "<div class=\"alert alert-error\"><ul><li>&lt;div&gt;</li></ul></div>"; assertThat(getOutput(), is(expected)); assertThat(ret, is(TagSupport.EVAL_BODY_INCLUDE)); }
@Test public void test32() throws Exception { request.setAttribute(ResultMessages.DEFAULT_MESSAGES_ATTRIBUTE_NAME, ResultMessages.error().add(ResultMessage.fromText("<div>"))); tag.setDisableHtmlEscape(""); int ret = tag.doStartTag(); String expected = "<div class=\"alert alert-error\"><ul><li>&lt;div&gt;</li></ul></div>"; assertThat(getOutput(), is(expected)); assertThat(ret, is(TagSupport.EVAL_BODY_INCLUDE)); }
@Test(expected = JspTagException.class) public void test33() throws Exception { request.setAttribute(ResultMessages.DEFAULT_MESSAGES_ATTRIBUTE_NAME, ResultMessages.error().add(ResultMessage.fromText("<div>"))); tag.setDisableHtmlEscape("aaaa"); tag.doStartTag(); }