Polish
This commit is contained in:
@@ -43,7 +43,7 @@ public class SampleDevToolsApplicationIntegrationTests {
|
||||
private TestRestTemplate restTemplate;
|
||||
|
||||
@Test
|
||||
public void testStaticResource() throws Exception {
|
||||
public void testStaticResource() {
|
||||
ResponseEntity<String> entity = this.restTemplate
|
||||
.getForEntity("/css/application.css", String.class);
|
||||
assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.OK);
|
||||
@@ -51,7 +51,7 @@ public class SampleDevToolsApplicationIntegrationTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testPublicResource() throws Exception {
|
||||
public void testPublicResource() {
|
||||
ResponseEntity<String> entity = this.restTemplate.getForEntity("/public.txt",
|
||||
String.class);
|
||||
assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.OK);
|
||||
@@ -59,7 +59,7 @@ public class SampleDevToolsApplicationIntegrationTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testClassResource() throws Exception {
|
||||
public void testClassResource() {
|
||||
ResponseEntity<String> entity = this.restTemplate
|
||||
.getForEntity("/application.properties", String.class);
|
||||
assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.NOT_FOUND);
|
||||
|
||||
Reference in New Issue
Block a user