diff --git a/org.springframework.web.servlet/src/test/java/org/springframework/web/servlet/tags/HtmlEscapeTagTests.java b/org.springframework.web.servlet/src/test/java/org/springframework/web/servlet/tags/HtmlEscapeTagTests.java index 41ee4ab8a6f..3695a7ea803 100644 --- a/org.springframework.web.servlet/src/test/java/org/springframework/web/servlet/tags/HtmlEscapeTagTests.java +++ b/org.springframework.web.servlet/src/test/java/org/springframework/web/servlet/tags/HtmlEscapeTagTests.java @@ -1,12 +1,12 @@ /* - * Copyright 2002-2005 the original author or authors. - * + * Copyright 2002-2011 the original author or authors. + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -18,8 +18,8 @@ package org.springframework.web.servlet.tags; import javax.servlet.jsp.JspException; import javax.servlet.jsp.PageContext; -import javax.servlet.jsp.tagext.Tag; import javax.servlet.jsp.tagext.BodyTag; +import javax.servlet.jsp.tagext.Tag; import org.springframework.mock.web.MockServletContext; import org.springframework.web.util.WebUtils; @@ -176,7 +176,7 @@ public class HtmlEscapeTagTests extends AbstractTagTests { tag.setJavaScriptEscape("true"); assertEquals(BodyTag.EVAL_BODY_BUFFERED, tag.doStartTag()); assertEquals(Tag.SKIP_BODY, tag.doAfterBody()); - assertEquals("Correct content", "\\' test & text \\\\", result.toString()); + assertEquals("Correct content", "' test & text \\\\", result.toString()); } } diff --git a/org.springframework.web.servlet/src/test/java/org/springframework/web/servlet/tags/MessageTagTests.java b/org.springframework.web.servlet/src/test/java/org/springframework/web/servlet/tags/MessageTagTests.java index d0842701024..2abcc95a850 100644 --- a/org.springframework.web.servlet/src/test/java/org/springframework/web/servlet/tags/MessageTagTests.java +++ b/org.springframework.web.servlet/src/test/java/org/springframework/web/servlet/tags/MessageTagTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2007 the original author or authors. + * Copyright 2002-2011 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,7 +19,6 @@ package org.springframework.web.servlet.tags; import java.util.Arrays; import java.util.List; import java.util.Locale; - import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.jsp.JspException; @@ -347,7 +346,7 @@ public class MessageTagTests extends AbstractTagTests { tag.setHtmlEscape("true"); tag.setJavaScriptEscape("true"); assertTrue("Correct doStartTag return value", tag.doStartTag() == Tag.EVAL_BODY_INCLUDE); - assertEquals("Correct message", "\\' test & text \\\\", message.toString()); + assertEquals("Correct message", "' test & text \\\\", message.toString()); } public void testMessageWithVarAndScope() throws JspException { diff --git a/org.springframework.web.servlet/src/test/java/org/springframework/web/servlet/tags/form/FormTagTests.java b/org.springframework.web.servlet/src/test/java/org/springframework/web/servlet/tags/form/FormTagTests.java index 9bf708967f8..2eec8db4183 100644 --- a/org.springframework.web.servlet/src/test/java/org/springframework/web/servlet/tags/form/FormTagTests.java +++ b/org.springframework.web.servlet/src/test/java/org/springframework/web/servlet/tags/form/FormTagTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2008 the original author or authors. + * Copyright 2002-2011 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -174,7 +174,7 @@ public class FormTagTests extends AbstractHtmlElementTagTests { String xssQueryString = QUERY_STRING + "&stuff=\">"; request.setQueryString(xssQueryString); tag.doStartTag(); - assertEquals("