Search in sources :

Example 21 with VerticleFactory

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));
}
Also used : VerticleFactory(io.vertx.core.spi.VerticleFactory) Test(org.junit.Test)

Aggregations

VerticleFactory (io.vertx.core.spi.VerticleFactory)21 Test (org.junit.Test)16 DeploymentOptions (io.vertx.core.DeploymentOptions)1 Vertx (io.vertx.core.Vertx)1 VertxTestBase (io.vertx.test.core.VertxTestBase)1 MalformedURLException (java.net.MalformedURLException)1 Callable (java.util.concurrent.Callable)1 AtomicReference (java.util.concurrent.atomic.AtomicReference)1 ApplicationContext (org.springframework.context.ApplicationContext)1 AnnotationConfigApplicationContext (org.springframework.context.annotation.AnnotationConfigApplicationContext)1