MessagesPanelTag extends RequestContextAwareTag { public void setMessagesType(String messagesType) { this.messagesType = messagesType; }  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 test22() throws Exception { request.setAttribute(ResultMessages.DEFAULT_MESSAGES_ATTRIBUTE_NAME, "hello world!"); tag.setMessagesType(""); int ret = tag.doStartTag(); String expected = "<div class=\"alert\"><ul><li>hello world!</li></ul></div>"; assertThat(getOutput(), is(expected)); assertThat(ret, is(TagSupport.EVAL_BODY_INCLUDE)); }
@Test public void test23() throws Exception { request.setAttribute(ResultMessages.DEFAULT_MESSAGES_ATTRIBUTE_NAME, "hello world!"); tag.setMessagesType("error"); int ret = tag.doStartTag(); String expected = "<div class=\"alert alert-error\"><ul><li>hello world!</li></ul></div>"; assertThat(getOutput(), is(expected)); assertThat(ret, is(TagSupport.EVAL_BODY_INCLUDE)); }
@Test public void test25() throws Exception { request.setAttribute(ResultMessages.DEFAULT_MESSAGES_ATTRIBUTE_NAME, Arrays.asList("foo", "bar")); tag.setMessagesType(""); int ret = tag.doStartTag(); String expected = "<div class=\"alert\"><ul><li>foo</li><li>bar</li></ul></div>"; assertThat(getOutput(), is(expected)); assertThat(ret, is(TagSupport.EVAL_BODY_INCLUDE)); }
@Test public void test26() throws Exception { request.setAttribute(ResultMessages.DEFAULT_MESSAGES_ATTRIBUTE_NAME, Arrays.asList("foo", "bar")); tag.setMessagesType("error"); int ret = tag.doStartTag(); String expected = "<div class=\"alert alert-error\"><ul><li>foo</li><li>bar</li></ul></div>"; assertThat(getOutput(), is(expected)); assertThat(ret, is(TagSupport.EVAL_BODY_INCLUDE)); }