Idiomatic refactor (#2063)

* StringToCharStream

* Spring integration tests

* Spring integration tests
This commit is contained in:
Grzegorz Piwowarek
2017-06-13 16:54:45 +02:00
committed by GitHub
parent 53f4ec5f87
commit fe11e8f7d4
4 changed files with 29 additions and 42 deletions
@@ -16,8 +16,9 @@ public class VertxSpringApplicationIntegrationTest {
private TestRestTemplate restTemplate = new TestRestTemplate();
@Test
public void givenUrl_whenReceivedArticles_thenSuccess() {
public void givenUrl_whenReceivedArticles_thenSuccess() throws InterruptedException {
ResponseEntity<String> responseEntity = restTemplate.getForEntity("http://localhost:8080/api/baeldung/articles", String.class);
assertEquals(200, responseEntity.getStatusCodeValue());
}