use of io.vertx.starter.AnalyticsVerticle in project vertx-starter by vert-x3.
the class AnalyticsTest method beforeEach.
@BeforeEach
void beforeEach(Vertx vertx, VertxTestContext testContext) throws IOException {
vertx.eventBus().registerDefaultCodec(VertxProject.class, new VertxProjectCodec());
JsonObject config = new JsonObject().put("host", mongo.getContainerIpAddress()).put("port", mongo.getMappedPort(27017));
client = MongoClient.create(vertx, config);
DeploymentOptions options = new DeploymentOptions().setConfig(config);
vertx.deployVerticle(new AnalyticsVerticle(), options, testContext.succeeding(id -> testContext.completeNow()));
}
Aggregations