use of org.folio.okapi.MainDeploy in project okapi by folio-org.
the class MainDeployTest method testClusterModeFail4.
@Test
public void testClusterModeFail4(TestContext context) {
async = context.async();
String[] args = { "cluster", "-hazelcast-config-url", "foobar" };
MainDeploy d = new MainDeploy();
d.init(args, res -> {
vertx = res.succeeded() ? res.result() : null;
Assert.assertTrue("main1 " + res.cause(), res.failed());
async.complete();
});
}
use of org.folio.okapi.MainDeploy in project okapi by folio-org.
the class MainDeployTest method testClusterModeFail1.
@Test
public void testClusterModeFail1(TestContext context) {
async = context.async();
String[] args = { "cluster", "-cluster-host", "foobar", "-cluster-port", "5701" };
MainDeploy d = new MainDeploy();
d.init(args, res -> {
vertx = res.succeeded() ? res.result() : null;
Assert.assertTrue("main1 " + res.cause(), res.failed());
async.complete();
});
}
use of org.folio.okapi.MainDeploy in project okapi by folio-org.
the class MultiTenantTest method setUp.
@Before
public void setUp(TestContext context) {
Async async = context.async();
RestAssured.port = port;
JsonObject conf = new JsonObject();
conf.put("port", Integer.toString(port));
MainDeploy d = new MainDeploy(conf);
String[] args = { "cluster" };
d.init(args, res -> {
if (res.succeeded()) {
vertx = res.result();
}
context.assertTrue(res.succeeded());
async.complete();
});
}
Aggregations