Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package de.adesso.inversiv.webservice;
- import de.adesso.inversiv.util.ConfigFactory;
- import io.vertx.core.DeploymentOptions;
- import io.vertx.core.Vertx;
- import io.vertx.junit5.VertxExtension;
- import org.junit.jupiter.api.DisplayName;
- import org.junit.jupiter.api.Test;
- import org.junit.jupiter.api.extension.ExtendWith;
- @ExtendWith(VertxExtension.class)
- public class VerticalDeployTests {
- public static Vertx vertx = Vertx.vertx();
- @Test
- @DisplayName("\uD83D\uDE80 Deploy a HTTP service verticle and make 10 requests")
- void HttpServerVerticleTest () {
- DeploymentOptions options = new DeploymentOptions().setConfig(ConfigFactory.getConfig());
- vertx.deployVerticle(HttpServerVerticle.class.getName(),
- options,
- handler -> {
- if (handler.succeeded()){
- } else {
- }
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement