Merge branch '6.1.x'
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2023 the original author or authors.
|
||||
* Copyright 2002-2024 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.
|
||||
@@ -170,9 +170,8 @@ class UrlFilenameViewControllerTests {
|
||||
|
||||
/**
|
||||
* This is the expected behavior, and it now has a test to prove it.
|
||||
* https://opensource.atlassian.com/projects/spring/browse/SPR-2789
|
||||
*/
|
||||
@PathPatternsParameterizedTest
|
||||
@PathPatternsParameterizedTest // SPR-2789
|
||||
void nestedPathisUsedAsViewName_InBreakingChangeFromSpring12Line(
|
||||
Function<String, MockHttpServletRequest> requestFactory) throws Exception {
|
||||
|
||||
|
||||
@@ -355,10 +355,7 @@ public class ErrorsTagTests extends AbstractFormTagTests {
|
||||
assertThat(getPageContext().getAttribute(ErrorsTag.MESSAGES_ATTRIBUTE)).isEqualTo(existingAttribute);
|
||||
}
|
||||
|
||||
/**
|
||||
* https://jira.spring.io/browse/SPR-2788
|
||||
*/
|
||||
@Test
|
||||
@Test // SPR-2788
|
||||
void asBodyTagWithErrorsAndExistingMessagesAttributeInNonPageScopeAreNotClobbered() throws Exception {
|
||||
String existingAttribute = "something";
|
||||
getPageContext().setAttribute(ErrorsTag.MESSAGES_ATTRIBUTE, existingAttribute, PageContext.APPLICATION_SCOPE);
|
||||
@@ -379,42 +376,27 @@ public class ErrorsTagTests extends AbstractFormTagTests {
|
||||
assertThat(getPageContext().getAttribute(ErrorsTag.MESSAGES_ATTRIBUTE, PageContext.APPLICATION_SCOPE)).isEqualTo(existingAttribute);
|
||||
}
|
||||
|
||||
/**
|
||||
* https://jira.spring.io/browse/SPR-2788
|
||||
*/
|
||||
@Test
|
||||
@Test // SPR-2788
|
||||
void asBodyTagWithNoErrorsAndExistingMessagesAttributeInApplicationScopeAreNotClobbered() throws Exception {
|
||||
assertWhenNoErrorsExistingMessagesInScopeAreNotClobbered(PageContext.APPLICATION_SCOPE);
|
||||
}
|
||||
|
||||
/**
|
||||
* https://jira.spring.io/browse/SPR-2788
|
||||
*/
|
||||
@Test
|
||||
@Test // SPR-2788
|
||||
void asBodyTagWithNoErrorsAndExistingMessagesAttributeInSessionScopeAreNotClobbered() throws Exception {
|
||||
assertWhenNoErrorsExistingMessagesInScopeAreNotClobbered(PageContext.SESSION_SCOPE);
|
||||
}
|
||||
|
||||
/**
|
||||
* https://jira.spring.io/browse/SPR-2788
|
||||
*/
|
||||
@Test
|
||||
@Test // SPR-2788
|
||||
void asBodyTagWithNoErrorsAndExistingMessagesAttributeInPageScopeAreNotClobbered() throws Exception {
|
||||
assertWhenNoErrorsExistingMessagesInScopeAreNotClobbered(PageContext.PAGE_SCOPE);
|
||||
}
|
||||
|
||||
/**
|
||||
* https://jira.spring.io/browse/SPR-2788
|
||||
*/
|
||||
@Test
|
||||
@Test // SPR-2788
|
||||
void asBodyTagWithNoErrorsAndExistingMessagesAttributeInRequestScopeAreNotClobbered() throws Exception {
|
||||
assertWhenNoErrorsExistingMessagesInScopeAreNotClobbered(PageContext.REQUEST_SCOPE);
|
||||
}
|
||||
|
||||
/**
|
||||
* https://jira.spring.io/browse/SPR-4005
|
||||
*/
|
||||
@Test
|
||||
@Test // SPR-4005
|
||||
void omittedPathMatchesObjectErrorsOnly() throws Exception {
|
||||
this.tag.setPath(null);
|
||||
Errors errors = new BeanPropertyBindingResult(new TestBean(), "COMMAND_NAME");
|
||||
|
||||
@@ -31,10 +31,7 @@ import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException
|
||||
*/
|
||||
class PasswordInputTagTests extends InputTagTests {
|
||||
|
||||
/**
|
||||
* https://jira.spring.io/browse/SPR-2866
|
||||
*/
|
||||
@Test
|
||||
@Test // SPR-2866
|
||||
void passwordValueIsNotRenderedByDefault() throws Exception {
|
||||
this.getTag().setPath("name");
|
||||
|
||||
@@ -48,10 +45,7 @@ class PasswordInputTagTests extends InputTagTests {
|
||||
assertValueAttribute(output, "");
|
||||
}
|
||||
|
||||
/**
|
||||
* https://jira.spring.io/browse/SPR-2866
|
||||
*/
|
||||
@Test
|
||||
@Test // SPR-2866
|
||||
void passwordValueIsRenderedIfShowPasswordAttributeIsSetToTrue() throws Exception {
|
||||
this.getTag().setPath("name");
|
||||
this.getPasswordTag().setShowPassword(true);
|
||||
@@ -66,10 +60,7 @@ class PasswordInputTagTests extends InputTagTests {
|
||||
assertValueAttribute(output, "Rob");
|
||||
}
|
||||
|
||||
/**
|
||||
* https://jira.spring.io/browse/SPR-2866
|
||||
*/
|
||||
@Test
|
||||
@Test // >SPR-2866
|
||||
void passwordValueIsNotRenderedIfShowPasswordAttributeIsSetToFalse() throws Exception {
|
||||
this.getTag().setPath("name");
|
||||
this.getPasswordTag().setShowPassword(false);
|
||||
|
||||
Reference in New Issue
Block a user