Apply SingleSpaceSeparator Checkstyle module
This commit also fixes its violations. Closes gh-31469
This commit is contained in:
@@ -726,7 +726,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
||||
}
|
||||
else if (this.inputStream != null) {
|
||||
throw new IllegalStateException(
|
||||
"Cannot call getReader() after getInputStream() has already been called for the current request") ;
|
||||
"Cannot call getReader() after getInputStream() has already been called for the current request");
|
||||
}
|
||||
|
||||
if (this.content != null) {
|
||||
|
||||
@@ -30,7 +30,7 @@ import org.springframework.util.StringUtils;
|
||||
* @author Sam Brannen
|
||||
* @since 5.2.5
|
||||
*/
|
||||
class DynamicValuesPropertySource extends EnumerablePropertySource<Map<String, Supplier<Object>>> {
|
||||
class DynamicValuesPropertySource extends EnumerablePropertySource<Map<String, Supplier<Object>>> {
|
||||
|
||||
DynamicValuesPropertySource(String name, Map<String, Supplier<Object>> valueSuppliers) {
|
||||
super(name, valueSuppliers);
|
||||
|
||||
@@ -51,7 +51,7 @@ public class XmlExpectationsHelper {
|
||||
assertThat("Body content", document, matcher);
|
||||
}
|
||||
|
||||
private Document parseXmlString(String xml) throws Exception {
|
||||
private Document parseXmlString(String xml) throws Exception {
|
||||
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
|
||||
factory.setNamespaceAware(true);
|
||||
DocumentBuilder documentBuilder = factory.newDocumentBuilder();
|
||||
|
||||
@@ -478,7 +478,7 @@ class DefaultWebTestClient implements WebTestClient {
|
||||
return new DefaultBodyContentSpec(entityResult);
|
||||
}
|
||||
|
||||
private <B> EntityExchangeResult<B> initEntityExchangeResult(@Nullable B body) {
|
||||
private <B> EntityExchangeResult<B> initEntityExchangeResult(@Nullable B body) {
|
||||
EntityExchangeResult<B> result = new EntityExchangeResult<>(this.exchangeResult, body);
|
||||
result.assertWithDiagnostics(() -> this.entityResultConsumer.accept(result));
|
||||
return result;
|
||||
|
||||
@@ -73,7 +73,7 @@ class WiretapConnector implements ClientHttpConnector {
|
||||
requestRef.set(wrapped);
|
||||
return requestCallback.apply(wrapped);
|
||||
})
|
||||
.map(response -> {
|
||||
.map(response -> {
|
||||
WiretapClientHttpRequest wrappedRequest = requestRef.get();
|
||||
String header = WebTestClient.WEBTESTCLIENT_REQUEST_ID;
|
||||
String requestId = wrappedRequest.getHeaders().getFirst(header);
|
||||
|
||||
@@ -54,7 +54,7 @@ class AotMergedContextConfigurationTests {
|
||||
|
||||
|
||||
@Test
|
||||
void testEquals() {
|
||||
void testEquals() {
|
||||
assertThat(aotMergedConfig1).isEqualTo(aotMergedConfig1);
|
||||
assertThat(aotMergedConfig1).isEqualTo(aotMergedConfig2);
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ class BeforeTestClassSqlScriptsTests extends AbstractTransactionalTests {
|
||||
}
|
||||
|
||||
@Nested
|
||||
class NestedBeforeTestClassSqlScriptsTests {
|
||||
class NestedBeforeTestClassSqlScriptsTests {
|
||||
|
||||
@Test
|
||||
void classLevelScriptsHaveBeenRun() {
|
||||
|
||||
@@ -35,7 +35,7 @@ import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;
|
||||
@SpringJUnitConfig(EmptyDatabaseConfig.class)
|
||||
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
|
||||
@Sql(
|
||||
scripts = "schema.sql",
|
||||
scripts = "schema.sql",
|
||||
statements = "INSERT INTO user VALUES('Dilbert')"
|
||||
)
|
||||
@DirtiesContext
|
||||
|
||||
@@ -80,7 +80,7 @@ class DefaultRequestExpectationTests {
|
||||
|
||||
|
||||
private ClientHttpRequest createRequest() {
|
||||
return new MockClientHttpRequest(HttpMethod.GET, URI.create("/foo"));
|
||||
return new MockClientHttpRequest(HttpMethod.GET, URI.create("/foo"));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -120,7 +120,7 @@ class UnorderedRequestExpectationManagerTests {
|
||||
|
||||
|
||||
private ClientHttpRequest createRequest(HttpMethod method, String url) {
|
||||
return new MockClientHttpRequest(method, URI.create(url));
|
||||
return new MockClientHttpRequest(method, URI.create(url));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -305,7 +305,7 @@ class JsonPathResultMatchersTests {
|
||||
MockHttpServletResponse response = new MockHttpServletResponse();
|
||||
response.addHeader("Content-Type", "application/json");
|
||||
response.getWriter().print(new String("test".getBytes(ISO_8859_1)));
|
||||
StubMvcResult result = new StubMvcResult(null, null, null, null, null, null, response);
|
||||
StubMvcResult result = new StubMvcResult(null, null, null, null, null, null, response);
|
||||
|
||||
assertThatExceptionOfType(AssertionError.class).isThrownBy(() ->
|
||||
new JsonPathResultMatchers("$.str").prefix("prefix").value("foo").match(result));
|
||||
|
||||
@@ -96,7 +96,7 @@ class StandaloneMockMvcBuilderTests {
|
||||
void applicationContextAttribute() {
|
||||
TestStandaloneMockMvcBuilder builder = new TestStandaloneMockMvcBuilder(new PlaceholderController());
|
||||
builder.addPlaceholderValue("sys.login.ajax", "/foo");
|
||||
WebApplicationContext wac = builder.initWebAppContext();
|
||||
WebApplicationContext wac = builder.initWebAppContext();
|
||||
assertThat(WebApplicationContextUtils.getRequiredWebApplicationContext(wac.getServletContext())).isEqualTo(wac);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user