Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. package de.adesso.inversiv.webservice;
  2.  
  3.  
  4. import de.adesso.inversiv.util.ConfigFactory;
  5. import io.vertx.core.DeploymentOptions;
  6. import io.vertx.core.Vertx;
  7. import io.vertx.junit5.VertxExtension;
  8. import org.junit.jupiter.api.DisplayName;
  9. import org.junit.jupiter.api.Test;
  10. import org.junit.jupiter.api.extension.ExtendWith;
  11.  
  12. @ExtendWith(VertxExtension.class)
  13. public class VerticalDeployTests {
  14.  
  15. public static Vertx vertx = Vertx.vertx();
  16.  
  17. @Test
  18. @DisplayName("\uD83D\uDE80 Deploy a HTTP service verticle and make 10 requests")
  19. void HttpServerVerticleTest () {
  20.  
  21.  
  22. DeploymentOptions options = new DeploymentOptions().setConfig(ConfigFactory.getConfig());
  23.  
  24. vertx.deployVerticle(HttpServerVerticle.class.getName(),
  25. options,
  26. handler -> {
  27. if (handler.succeeded()){
  28.  
  29. } else {
  30.  
  31. }
  32. });
  33. }
  34.  
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement