BAEL-702 - Intro to Vert.x formatting changes

This commit is contained in:
slavisa-baeldung
2017-03-20 15:50:43 +00:00
parent c071c59ada
commit 5294e7d425
5 changed files with 44 additions and 44 deletions
@@ -34,13 +34,13 @@ public class RestServiceVerticleTest {
final Async async = testContext.async();
vertx.createHttpClient()
.getNow(8080, "localhost", "/api/baeldung/articles/article/12345", response -> {
response.handler(responseBody -> {
testContext.assertTrue(responseBody.toString()
.contains("\"id\" : \"12345\""));
async.complete();
.getNow(8080, "localhost", "/api/baeldung/articles/article/12345", response -> {
response.handler(responseBody -> {
testContext.assertTrue(responseBody.toString()
.contains("\"id\" : \"12345\""));
async.complete();
});
});
});
}
}
@@ -20,8 +20,8 @@ public class SimpleServerVerticleTest {
public void setup(TestContext testContext) {
vertx = Vertx.vertx();
vertx.deployVerticle(SimpleServerVerticle.class.getName(),
testContext.asyncAssertSuccess());
vertx.deployVerticle(SimpleServerVerticle.class.getName(),
testContext.asyncAssertSuccess());
}
@After
@@ -34,13 +34,13 @@ public class SimpleServerVerticleTest {
final Async async = testContext.async();
vertx.createHttpClient()
.getNow(8080, "localhost", "/", response -> {
response.handler(responseBody -> {
testContext.assertTrue(responseBody.toString()
.contains("Welcome"));
async.complete();
.getNow(8080, "localhost", "/", response -> {
response.handler(responseBody -> {
testContext.assertTrue(responseBody.toString()
.contains("Welcome"));
async.complete();
});
});
});
}
}