Polish
This commit is contained in:
@@ -40,7 +40,7 @@ public class SampleTestNGApplicationTests extends AbstractTestNGSpringContextTes
|
||||
private TestRestTemplate restTemplate;
|
||||
|
||||
@Test
|
||||
public void testHome() throws Exception {
|
||||
public void testHome() {
|
||||
ResponseEntity<String> entity = this.restTemplate.getForEntity("/", String.class);
|
||||
assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.OK);
|
||||
assertThat(entity.getBody()).isEqualTo("Hello World");
|
||||
|
||||
Reference in New Issue
Block a user