Merge previously split strings
Merge some string lines that were previously split because of the 90 chars wide formatting.
This commit is contained in:
@@ -199,7 +199,7 @@ public class DevToolsIntegrationTests {
|
||||
if (System.currentTimeMillis() > end) {
|
||||
throw new IllegalStateException(String.format(
|
||||
"server.port file '" + this.serverPortFile + "' was not written within " + timeToWait.toMillis()
|
||||
+ "ms. " + "Application output:%n%s%s",
|
||||
+ "ms. Application output:%n%s%s",
|
||||
FileCopyUtils.copyToString(new FileReader(this.launchedApplication.getStandardOut())),
|
||||
FileCopyUtils.copyToString(new FileReader(this.launchedApplication.getStandardError()))));
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ public class DevToolsWithLazyInitializationIntegrationTests {
|
||||
if (System.currentTimeMillis() > end) {
|
||||
throw new IllegalStateException(String.format(
|
||||
"server.port file '" + this.serverPortFile + "' was not written within " + timeToWait.toMillis()
|
||||
+ "ms. " + "Application output:%n%s%s",
|
||||
+ "ms. Application output:%n%s%s",
|
||||
FileCopyUtils.copyToString(new FileReader(this.launchedApplication.getStandardOut())),
|
||||
FileCopyUtils.copyToString(new FileReader(this.launchedApplication.getStandardError()))));
|
||||
}
|
||||
|
||||
@@ -100,9 +100,9 @@ abstract class RemoteApplicationLauncher extends AbstractApplicationLauncher {
|
||||
long end = System.currentTimeMillis() + 30000;
|
||||
while (serverPortFile.length() == 0) {
|
||||
if (System.currentTimeMillis() > end) {
|
||||
throw new IllegalStateException(String.format(
|
||||
"server.port file was not written within 30 seconds. " + "Application output:%n%s",
|
||||
FileCopyUtils.copyToString(new FileReader(standardOut))));
|
||||
throw new IllegalStateException(
|
||||
String.format("server.port file was not written within 30 seconds. Application output:%n%s",
|
||||
FileCopyUtils.copyToString(new FileReader(standardOut))));
|
||||
}
|
||||
Thread.sleep(100);
|
||||
}
|
||||
@@ -115,7 +115,7 @@ abstract class RemoteApplicationLauncher extends AbstractApplicationLauncher {
|
||||
long end = System.currentTimeMillis() + 30000;
|
||||
while (!standardOut.exists()) {
|
||||
if (System.currentTimeMillis() > end) {
|
||||
throw new IllegalStateException("Standard out file was not written " + "within 30 seconds");
|
||||
throw new IllegalStateException("Standard out file was not written within 30 seconds");
|
||||
}
|
||||
Thread.sleep(100);
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ class SampleActuatorLog4J2ApplicationTests {
|
||||
void validateLoggersEndpoint() throws Exception {
|
||||
this.mvc.perform(get("/actuator/loggers/org.apache.coyote.http11.Http11NioProtocol").header("Authorization",
|
||||
getBasicAuth())).andExpect(status().isOk())
|
||||
.andExpect(content().string("{\"configuredLevel\":\"WARN\"," + "\"effectiveLevel\":\"WARN\"}"));
|
||||
.andExpect(content().string("{\"configuredLevel\":\"WARN\",\"effectiveLevel\":\"WARN\"}"));
|
||||
}
|
||||
|
||||
private String getBasicAuth() {
|
||||
|
||||
@@ -54,7 +54,7 @@ public class SampleAtmosphereApplication {
|
||||
"/chat/*");
|
||||
registration.addInitParameter("org.atmosphere.cpr.packages", "smoketest");
|
||||
registration.addInitParameter(
|
||||
"org.atmosphere.interceptor.HeartbeatInterceptor" + ".clientHeartbeatFrequencyInSeconds", "10");
|
||||
"org.atmosphere.interceptor.HeartbeatInterceptor.clientHeartbeatFrequencyInSeconds", "10");
|
||||
registration.setLoadOnStartup(0);
|
||||
// Need to occur before the EmbeddedAtmosphereInitializer
|
||||
registration.setOrder(Ordered.HIGHEST_PRECEDENCE);
|
||||
|
||||
@@ -36,7 +36,7 @@ public class CacheManagerCheck implements CommandLineRunner {
|
||||
|
||||
@Override
|
||||
public void run(String... strings) throws Exception {
|
||||
logger.info("\n\n" + "=========================================================\n" + "Using cache manager: "
|
||||
logger.info("\n\n=========================================================\nUsing cache manager: "
|
||||
+ this.cacheManager.getClass().getName() + "\n"
|
||||
+ "=========================================================\n\n");
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ public class User {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "User{" + "id='" + this.id + '\'' + ", firstName='" + this.firstName + '\'' + ", lastName='"
|
||||
return "User{id='" + this.id + '\'' + ", firstName='" + this.firstName + '\'' + ", lastName='"
|
||||
+ this.lastName + '\'' + '}';
|
||||
}
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ class SampleHateoasApplicationTests {
|
||||
void hasHalLinks() {
|
||||
ResponseEntity<String> entity = this.restTemplate.getForEntity("/customers/1", String.class);
|
||||
assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.OK);
|
||||
assertThat(entity.getBody()).startsWith("{\"id\":1,\"firstName\":\"Oliver\"" + ",\"lastName\":\"Gierke\"");
|
||||
assertThat(entity.getBody()).startsWith("{\"id\":1,\"firstName\":\"Oliver\",\"lastName\":\"Gierke\"");
|
||||
assertThat(entity.getBody()).contains("_links\":{\"self\":{\"href\"");
|
||||
}
|
||||
|
||||
|
||||
@@ -36,8 +36,7 @@ class SampleJooqApplicationTests {
|
||||
void outputResults(CapturedOutput output) {
|
||||
SampleJooqApplication.main(NO_ARGS);
|
||||
assertThat(output).contains("jOOQ Fetch 1 Greg Turnquest").contains("jOOQ Fetch 2 Craig Walls")
|
||||
.contains("jOOQ SQL " + "[Learning Spring Boot : Greg Turnquest, "
|
||||
+ "Spring Boot in Action : Craig Walls]");
|
||||
.contains("jOOQ SQL [Learning Spring Boot : Greg Turnquest, Spring Boot in Action : Craig Walls]");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -41,12 +41,13 @@ class SampleLiquibaseApplicationTests {
|
||||
}
|
||||
}
|
||||
assertThat(output).contains("Successfully acquired change log lock")
|
||||
.contains("Creating database history " + "table with name: PUBLIC.DATABASECHANGELOG")
|
||||
.contains("Creating database history table with name: PUBLIC.DATABASECHANGELOG")
|
||||
.contains("Table person created")
|
||||
.contains("ChangeSet classpath:/db/" + "changelog/db.changelog-master.yaml::1::"
|
||||
.contains("ChangeSet classpath:/db/changelog/db.changelog-master.yaml::1::"
|
||||
+ "marceloverdijk ran successfully")
|
||||
.contains("New row inserted into person").contains("ChangeSet classpath:/db/changelog/"
|
||||
+ "db.changelog-master.yaml::2::" + "marceloverdijk ran successfully")
|
||||
.contains("New row inserted into person")
|
||||
.contains("ChangeSet classpath:/db/changelog/"
|
||||
+ "db.changelog-master.yaml::2::marceloverdijk ran successfully")
|
||||
.contains("Successfully released change log lock");
|
||||
}
|
||||
|
||||
|
||||
@@ -51,10 +51,10 @@ class SampleWsApplicationTests {
|
||||
@Test
|
||||
void testSendingHolidayRequest(CapturedOutput output) {
|
||||
final String request = "<hr:HolidayRequest xmlns:hr=\"https://company.example.com/hr/schemas\">"
|
||||
+ " <hr:Holiday>" + " <hr:StartDate>2013-10-20</hr:StartDate>"
|
||||
+ " <hr:EndDate>2013-11-22</hr:EndDate>" + " </hr:Holiday>" + " <hr:Employee>"
|
||||
+ " <hr:Number>1</hr:Number>" + " <hr:FirstName>John</hr:FirstName>"
|
||||
+ " <hr:LastName>Doe</hr:LastName>" + " </hr:Employee>" + "</hr:HolidayRequest>";
|
||||
+ " <hr:Holiday> <hr:StartDate>2013-10-20</hr:StartDate>"
|
||||
+ " <hr:EndDate>2013-11-22</hr:EndDate> </hr:Holiday> <hr:Employee>"
|
||||
+ " <hr:Number>1</hr:Number> <hr:FirstName>John</hr:FirstName>"
|
||||
+ " <hr:LastName>Doe</hr:LastName> </hr:Employee></hr:HolidayRequest>";
|
||||
StreamSource source = new StreamSource(new StringReader(request));
|
||||
StreamResult result = new StreamResult(System.out);
|
||||
this.webServiceTemplate.sendSourceAndReceiveToResult(source, result);
|
||||
|
||||
Reference in New Issue
Block a user