【问题标题】:I'd like configure IndefiniteWaitOneShotStartupCheckStrategy by properties, not using Java class on testcontainer我想通过属性配置 IndefiniteWaitOneShotStartupCheckStrategy,而不是在 testcontainer 上使用 Java 类
【发布时间】:2021-09-30 00:51:06
【问题描述】:

我需要使用 testcontainer.properties 的“无限一次启动策略示例”。 如何使用属性配置 IndefiniteWaitOneShotStartupCheckStrategy?

真的,我想通过属性来配置这三个例子,但是我不知道怎么做:

container.withStartupCheckStrategy(
  new IndefiniteWaitOneShotStartupCheckStrategy()
);
container.waitingFor(
  Wait.forLogMessage("Completed: ALTER PLUGGABLE DATABASE XEPDB1 SAVE STATE", 1)
);
container.withStartupTimeoutSeconds(30);

参考: https://www.testcontainers.org/features/startup_and_waits/#indefinite-one-shot-startup-strategy-example

【问题讨论】:

    标签: testcontainers testcontainers-junit5


    【解决方案1】:

    【讨论】:

      猜你喜欢
      • 2016-07-24
      • 1970-01-01
      • 1970-01-01
      • 2013-11-28
      • 2020-12-07
      • 1970-01-01
      • 2018-08-20
      • 2021-12-28
      • 1970-01-01
      相关资源
      最近更新 更多