Merge branch '1.2.x'
This commit is contained in:
@@ -43,8 +43,8 @@ public class SampleJerseyApplicationTests {
|
||||
|
||||
@Test
|
||||
public void contextLoads() {
|
||||
ResponseEntity<String> entity = this.restTemplate.getForEntity(
|
||||
"http://localhost:" + this.port + "/hello", String.class);
|
||||
ResponseEntity<String> entity = this.restTemplate
|
||||
.getForEntity("http://localhost:" + this.port + "/hello", String.class);
|
||||
assertEquals(HttpStatus.OK, entity.getStatusCode());
|
||||
}
|
||||
|
||||
@@ -58,8 +58,8 @@ public class SampleJerseyApplicationTests {
|
||||
|
||||
@Test
|
||||
public void validation() {
|
||||
ResponseEntity<String> entity = this.restTemplate.getForEntity(
|
||||
"http://localhost:" + this.port + "/reverse", String.class);
|
||||
ResponseEntity<String> entity = this.restTemplate
|
||||
.getForEntity("http://localhost:" + this.port + "/reverse", String.class);
|
||||
assertEquals(HttpStatus.BAD_REQUEST, entity.getStatusCode());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user