Upgrade to spring-javaformat 0.0.11

This commit is contained in:
Andy Wilkinson
2019-06-07 09:44:58 +01:00
parent d548c5ed31
commit 8f1be4cded
1940 changed files with 16814 additions and 28498 deletions

View File

@@ -54,17 +54,14 @@ public class SampleGithubApplicationTests {
public void everythingIsSecuredByDefault() throws Exception {
ResponseEntity<Void> entity = this.restTemplate.getForEntity("/", Void.class);
assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.FOUND);
assertThat(entity.getHeaders().getLocation())
.isEqualTo(URI.create("http://localhost:" + this.port + "/login"));
assertThat(entity.getHeaders().getLocation()).isEqualTo(URI.create("http://localhost:" + this.port + "/login"));
}
@Test
public void loginRedirectsToGithub() throws Exception {
ResponseEntity<Void> entity = this.restTemplate.getForEntity("/login",
Void.class);
ResponseEntity<Void> entity = this.restTemplate.getForEntity("/login", Void.class);
assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.FOUND);
assertThat(entity.getHeaders().getLocation().toString())
.startsWith("https://github.com/login/oauth");
assertThat(entity.getHeaders().getLocation().toString()).startsWith("https://github.com/login/oauth");
}
}