24 lines
695 B
Java
24 lines
695 B
Java
package cx.lehmann.gemini.gemini;
|
|
|
|
import io.vertx.core.Vertx;
|
|
import io.vertx.junit5.VertxExtension;
|
|
import io.vertx.junit5.VertxTestContext;
|
|
import org.junit.jupiter.api.BeforeEach;
|
|
import org.junit.jupiter.api.Test;
|
|
import org.junit.jupiter.api.extension.ExtendWith;
|
|
|
|
@ExtendWith(VertxExtension.class)
|
|
public class TestMainVerticle {
|
|
|
|
@BeforeEach
|
|
void deploy_verticle(Vertx vertx, VertxTestContext testContext) {
|
|
vertx.deployVerticle(new MainVerticle(), testContext.succeeding(id -> testContext.completeNow()));
|
|
}
|
|
|
|
@Test
|
|
void verticle_deployed(Vertx vertx, VertxTestContext testContext) throws Throwable {
|
|
vertx.setTimer(10000000, l ->
|
|
testContext.completeNow());
|
|
}
|
|
}
|