Polish "Fix Javadoc"

See gh-32403
This commit is contained in:
Stéphane Nicoll
2024-03-09 15:53:49 +01:00
parent abdccffa39
commit 4983a802a7
17 changed files with 38 additions and 92 deletions

View File

@@ -170,9 +170,8 @@ class UrlFilenameViewControllerTests {
/**
* This is the expected behavior, and it now has a test to prove it.
* @see <a href="https://opensource.atlassian.com/projects/spring/browse/SPR-2789">SPR-2789</a>
*/
@PathPatternsParameterizedTest
@PathPatternsParameterizedTest // SPR-2789
void nestedPathisUsedAsViewName_InBreakingChangeFromSpring12Line(
Function<String, MockHttpServletRequest> requestFactory) throws Exception {

View File

@@ -355,10 +355,7 @@ public class ErrorsTagTests extends AbstractFormTagTests {
assertThat(getPageContext().getAttribute(ErrorsTag.MESSAGES_ATTRIBUTE)).isEqualTo(existingAttribute);
}
/**
* <a href="https://jira.spring.io/browse/SPR-2788">SPR-2788</a>
*/
@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);
}
/**
* <a href="https://jira.spring.io/browse/SPR-2788">SPR-2788</a>
*/
@Test
@Test // SPR-2788
void asBodyTagWithNoErrorsAndExistingMessagesAttributeInApplicationScopeAreNotClobbered() throws Exception {
assertWhenNoErrorsExistingMessagesInScopeAreNotClobbered(PageContext.APPLICATION_SCOPE);
}
/**
* <a href="https://jira.spring.io/browse/SPR-2788">SPR-2788</a>
*/
@Test
@Test // SPR-2788
void asBodyTagWithNoErrorsAndExistingMessagesAttributeInSessionScopeAreNotClobbered() throws Exception {
assertWhenNoErrorsExistingMessagesInScopeAreNotClobbered(PageContext.SESSION_SCOPE);
}
/**
* <a href="https://jira.spring.io/browse/SPR-2788">SPR-2788</a>
*/
@Test
@Test // SPR-2788
void asBodyTagWithNoErrorsAndExistingMessagesAttributeInPageScopeAreNotClobbered() throws Exception {
assertWhenNoErrorsExistingMessagesInScopeAreNotClobbered(PageContext.PAGE_SCOPE);
}
/**
* <a href="https://jira.spring.io/browse/SPR-2788">SPR-2788</a>
*/
@Test
@Test // SPR-2788
void asBodyTagWithNoErrorsAndExistingMessagesAttributeInRequestScopeAreNotClobbered() throws Exception {
assertWhenNoErrorsExistingMessagesInScopeAreNotClobbered(PageContext.REQUEST_SCOPE);
}
/**
* <a href="https://jira.spring.io/browse/SPR-4005">SPR-4005</a>
*/
@Test
@Test // SPR-4005
void omittedPathMatchesObjectErrorsOnly() throws Exception {
this.tag.setPath(null);
Errors errors = new BeanPropertyBindingResult(new TestBean(), "COMMAND_NAME");

View File

@@ -31,10 +31,7 @@ import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException
*/
class PasswordInputTagTests extends InputTagTests {
/**
* <a href="https://jira.spring.io/browse/SPR-2866">SPR-2866</a>
*/
@Test
@Test // SPR-2866
void passwordValueIsNotRenderedByDefault() throws Exception {
this.getTag().setPath("name");
@@ -48,10 +45,7 @@ class PasswordInputTagTests extends InputTagTests {
assertValueAttribute(output, "");
}
/**
* <a href="https://jira.spring.io/browse/SPR-2866">SPR-2866</a>
*/
@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");
}
/**
* <a href="https://jira.spring.io/browse/SPR-2866">SPR-2866</a>
*/
@Test
@Test // >SPR-2866
void passwordValueIsNotRenderedIfShowPasswordAttributeIsSetToFalse() throws Exception {
this.getTag().setPath("name");
this.getPasswordTag().setShowPassword(false);