io.vertx.ext.unit.Async.isSucceeded()方法的使用及代码示例

x33g5p2x  于11个月前 转载在 其他  
字(1.3k)|赞(0)|评价(0)|浏览(32)

本文整理了Java中io.vertx.ext.unit.Async.isSucceeded()方法的一些代码示例,展示了Async.isSucceeded()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Async.isSucceeded()方法的具体详情如下:
包路径:io.vertx.ext.unit.Async
类名称:Async
方法名:isSucceeded

Async.isSucceeded介绍

暂无

代码示例

代码示例来源:origin: org.openehealth.ipf.commons/ipf-commons-audit

@Ignore
public void testTLSTwoWayTLSWrongClientCert(TestContext testContext) throws Exception {
  initTLSSystemProperties(EXPIRED_CLIENT_KEY_STORE);
  Async async = testContext.async();
  deploy(testContext, createTCPServerTwoWayTLS(port,
      TRUST_STORE,
      TRUST_STORE_PASS,
      SERVER_KEY_STORE,
      SERVER_KEY_STORE_PASS,
      async));
  sendAudit();
  try {
    async.awaitSuccess(WAIT_TIME);
    Assert.fail();
  } catch (Exception e) {
    LOG.info("Exception thrown :" + e.getMessage());
  }
  if (async.isSucceeded()) {
    Assert.fail();
  }
  async.complete();
}

代码示例来源:origin: io.vertx/vertx-amqp-bridge

context.assertTrue(asyncSendInitialCredit.isSucceeded(), "should have been called after initial credit delay");
context.assertFalse(producer.writeQueueFull(), "expected write queue not to be full, we just granted credit");
 context.assertTrue(asyncSendSubsequentCredit.isSucceeded(), "should have been called after 2nd credit delay");
 context.assertFalse(producer.writeQueueFull(), "expected write queue not to be full, we just granted credit");

相关文章