assertFalse(verticle.isMultiThreaded());
}
@Test
public void testDefaultVerticleConfig() {
VerticleConfig verticle = new DefaultVerticleConfig("test", "test.py", new DefaultNetworkConfig("test"));
assertEquals("test", verticle.getName());
assertTrue(verticle.getType().equals(ComponentConfig.Type.VERTICLE));
assertEquals("test.py", verticle.getMain());
verticle.setMain("foo.js");
assertEquals("foo.js", verticle.getMain());
assertEquals(new JsonObject(), verticle.getConfig());
verticle.setConfig(new JsonObject().putString("foo", "bar"));
assertEquals("bar", verticle.getConfig().getString("foo"));
assertEquals(1, verticle.getInstances());
verticle.setInstances(4);
assertEquals(4, verticle.getInstances());
verticle.setGroup("test");
assertEquals("test", verticle.getGroup());
assertFalse(verticle.isWorker());
verticle.setWorker(true);
assertTrue(verticle.isWorker());
assertFalse(verticle.isMultiThreaded());
verticle.setMultiThreaded(true);
assertTrue(verticle.isMultiThreaded());
verticle.setWorker(false);
assertFalse(verticle.isMultiThreaded());
}