Upgrade to spring-javaformat 0.0.11
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user