Introduce Checkstyle rule for separator symbol location
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user