congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
LogMessageWaitStrategy.withTimes
Code IndexAdd Tabnine to your IDE (free)

How to use
withTimes
method
in
org.testcontainers.containers.wait.LogMessageWaitStrategy

Best Java code snippets using org.testcontainers.containers.wait.LogMessageWaitStrategy.withTimes (Showing top 4 results out of 315)

origin: testcontainers/testcontainers-java

  /**
   * Convenience method to return a WaitStrategy for log messages.
   *
   * @param regex the regex pattern to check for
   * @param times the number of times the pattern is expected
   * @return LogMessageWaitStrategy
   */
  public static LogMessageWaitStrategy forLogMessage(String regex, int times) {
    return new LogMessageWaitStrategy().withRegEx(regex).withTimes(times);
  }
}
origin: testcontainers/testcontainers-java

public PostgreSQLContainer(final String dockerImageName) {
  super(dockerImageName);
  this.waitStrategy = new LogMessageWaitStrategy()
      .withRegEx(".*database system is ready to accept connections.*\\s")
      .withTimes(2)
      .withStartupTimeout(Duration.of(60, SECONDS));
}
origin: org.testcontainers/testcontainers

  /**
   * Convenience method to return a WaitStrategy for log messages.
   *
   * @param regex the regex pattern to check for
   * @param times the number of times the pattern is expected
   * @return LogMessageWaitStrategy
   */
  public static LogMessageWaitStrategy forLogMessage(String regex, int times) {
    return new LogMessageWaitStrategy().withRegEx(regex).withTimes(times);
  }
}
origin: org.testcontainers/postgresql

public PostgreSQLContainer(final String dockerImageName) {
  super(dockerImageName);
  this.waitStrategy = new LogMessageWaitStrategy()
      .withRegEx(".*database system is ready to accept connections.*\\s")
      .withTimes(2)
      .withStartupTimeout(Duration.of(60, SECONDS));
}
org.testcontainers.containers.waitLogMessageWaitStrategywithTimes

Popular methods of LogMessageWaitStrategy

  • <init>
  • withRegEx
  • withStartupTimeout

Popular in Java

  • Start an intent from android
  • requestLocationUpdates (LocationManager)
  • getResourceAsStream (ClassLoader)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now