Search in sources :

Example 31 with Launcher

use of io.vertx.core.Launcher in project vert.x by eclipse.

the class RunCommandTest method testDeploymentOfJavaVerticle.

@Test
public void testDeploymentOfJavaVerticle() {
    cli.dispatch(new Launcher(), new String[] { "run", HttpTestVerticle.class.getName() });
    assertWaitUntil(() -> {
        try {
            return getHttpCode() == 200;
        } catch (IOException e) {
            return false;
        }
    });
}
Also used : Launcher(io.vertx.core.Launcher) Test(org.junit.Test)

Aggregations

Launcher (io.vertx.core.Launcher)31 Test (org.junit.Test)31 IOException (java.io.IOException)16 JsonObject (io.vertx.core.json.JsonObject)9 RunCommandTest (io.vertx.core.impl.launcher.commands.RunCommandTest)8 Vertx (io.vertx.core.Vertx)6 File (java.io.File)4 VertxOptions (io.vertx.core.VertxOptions)3 FakeClusterManager (io.vertx.test.fakecluster.FakeClusterManager)1 FakeMetricsFactory (io.vertx.test.fakemetrics.FakeMetricsFactory)1 Random (java.util.Random)1