Introduce Checkstyle rule for separator symbol location

This commit is contained in:
Sam Brannen
2025-03-19 15:35:35 +01:00
parent 18c3b637e4
commit 208d52d852
97 changed files with 378 additions and 403 deletions

View File

@@ -294,8 +294,8 @@ class ContextLoaderTests {
@Test
void frameworkServletWithCustomLocation() throws Exception {
DispatcherServlet servlet = new DispatcherServlet();
servlet.setContextConfigLocation("/org/springframework/web/context/WEB-INF/testNamespace.xml "
+ "/org/springframework/web/context/WEB-INF/context-addition.xml");
servlet.setContextConfigLocation("/org/springframework/web/context/WEB-INF/testNamespace.xml " +
"/org/springframework/web/context/WEB-INF/context-addition.xml");
servlet.init(new MockServletConfig(new MockServletContext(""), "test"));
assertThat(servlet.getWebApplicationContext().containsBean("kerry")).isTrue();
assertThat(servlet.getWebApplicationContext().containsBean("kerryX")).isTrue();

View File

@@ -82,8 +82,8 @@ class InternalResourceViewTests {
view.render(model, request, response);
assertThat(response.getForwardedUrl()).isEqualTo(url);
model.forEach((key, value) -> assertThat(request.getAttribute(key)).as("Values for model key '" + key
+ "' must match").isEqualTo(value));
model.forEach((key, value) -> assertThat(request.getAttribute(key))
.as("Values for model key '%s' must match", key).isEqualTo(value));
}
@Test