@Override
public void handle(AsyncResult<ModuleInfo> result) {
if (result.failed()) {
assertTrue(result.cause().getMessage(), result.succeeded());
} else {
ModuleInfo info = result.result();
assertEquals("net.kuujo~test-mod-1~1.0", info.id().toString());
assertEquals("app.js", info.fields().getMain());
assertEquals("net.kuujo~test-include-1~1.0", info.fields().getIncludes());
assertEquals("net.kuujo~test-include-2~1.0", info.fields().getDeploys());
assertEquals("in", info.fields().getInPorts().get(0));
assertEquals("out", info.fields().getOutPorts().get(0));
testComplete();
}
}
});
}