DockerModuleHandle implements ModuleHandle { @Override public Future<Void> start() { if (dockerPull) { return pullImage().compose(x -> prepareContainer()); } return prepareContainer(); } DockerModuleHandle(Vertx vertx, LaunchDescriptor desc,
                     String id, Ports ports, String containerHost, int port, JsonObject config,
                     Logger logger);   DockerModuleHandle(Vertx vertx, LaunchDescriptor desc,
      String id, Ports ports, String containerHost, int port, JsonObject config); @Override Future<Void> start(); @Override Future<Void> stop();  }
@Test public void testHostNoExposedPorts(TestContext context) { Vertx vertx = Vertx.vertx(); LaunchDescriptor ld = new LaunchDescriptor(); ld.setDockerImage("folioci/mod-users:5.0.0-SNAPSHOT"); ld.setDockerPull(false); Ports ports = new Ports(9232, 9233); JsonObject conf = new JsonObject().put("dockerUrl", "tcp: DockerModuleHandle dh = new DockerModuleHandle(vertx, ld, "mod-users-5.0.0-SNAPSHOT", ports, "localhost", 0 , conf); dh.start().onComplete(context.asyncAssertFailure(cause -> context.assertEquals("No exposedPorts in image", cause.getMessage()))); }