use of io.vertx.core.spi.VerticleFactory in project vert.x by eclipse.
the class VerticleFactoryTest method testRegister.
@Test
public void testRegister() {
assertTrue(vertx.verticleFactories().isEmpty());
VerticleFactory fact1 = new TestVerticleFactory("foo");
vertx.registerVerticleFactory(fact1);
assertEquals(1, vertx.verticleFactories().size());
assertTrue(vertx.verticleFactories().contains(fact1));
}
Aggregations