Skip to content

Instantly share code, notes, and snippets.

@vietj
Created August 10, 2020 14:43
Show Gist options
  • Save vietj/f4951f687d4af9da4365169154da5e9f to your computer and use it in GitHub Desktop.
Save vietj/f4951f687d4af9da4365169154da5e9f to your computer and use it in GitHub Desktop.
client.request(HttpMethod.GET, server.actualPort(), "localhost", "/")
.onComplete(testContext.succeeding(req -> {
req.onComplete(testContext.succeeding(httpClientResponse -> {
testContext.verify(() -> {
assertThat(httpClientResponse.statusCode())
.isEqualTo(200);
});
checkpoint.flag();
}));
try {
VertxMessageFactory
.createWriter(req)
.writeStructured(event, CSVFormat.INSTANCE);
} catch (Throwable e) {
testContext.failNow(e);
}
checkpoint.flag();
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment