congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
org.testcontainers.utility
Code IndexAdd Tabnine to your IDE (free)

How to use org.testcontainers.utility

Best Java code snippets using org.testcontainers.utility (Showing top 20 results out of 315)

origin: testcontainers/testcontainers-java

public synchronized static RegistryAuthLocator instance() {
  if (instance == null) {
    instance = new RegistryAuthLocator();
  }
  return instance;
}
origin: testcontainers/testcontainers-java

  /**
   * @return a logger
   */
  private Logger logger() {
    return DockerLoggerFactory.getLogger(COMPOSE_EXECUTABLE);
  }
}
origin: testcontainers/testcontainers-java

/**
 * Obtains a {@link MountableFile} corresponding to a file on the docker host filesystem.
 *
 * @param path the path to the resource
 * @return a {@link MountableFile} that may be used to obtain a mountable path
 */
public static MountableFile forHostPath(final Path path) {
  return forHostPath(path, null);
}
origin: testcontainers/testcontainers-java

@Test
public void forClasspathResource() throws Exception {
  final MountableFile mountableFile = MountableFile.forClasspathResource("mappable-resource/test-resource.txt");
  performChecks(mountableFile);
}
origin: testcontainers/testcontainers-java

  public boolean isGreaterThanOrEqualTo(String other) {
    return this.compareTo(new ComparableVersion(other)) >= 0;
  }
}
origin: testcontainers/testcontainers-java

@Override
public int getFileMode() {
  return getUnixFileMode(this.getResolvedPath());
}
origin: testcontainers/testcontainers-java

public void followOutput(DockerClient dockerClient, String containerId, Consumer<OutputFrame> consumer) {
  followOutput(dockerClient, containerId, consumer, STDOUT, STDERR);
}
origin: testcontainers/testcontainers-java

/**
 * {@inheritDoc}
 */
@Override
public void transferTo(final TarArchiveOutputStream outputStream, String destinationPathInTar) {
  recursiveTar(destinationPathInTar, this.getResolvedPath(), this.getResolvedPath(), outputStream);
}
origin: testcontainers/testcontainers-java

@Override
protected boolean isApplicable() {
  return DockerMachineClient.instance().isInstalled();
}
origin: testcontainers/testcontainers-java

@Override
public String toString() {
  if (versioning == null) {
    return getUnversionedPart();
  } else {
    return getUnversionedPart() + versioning.getSeparator() + versioning.toString();
  }
}
origin: testcontainers/testcontainers-java

@Override
public String getDescription() {
  return this.getResolvedPath();
}
origin: testcontainers/testcontainers-java

public RemoteDockerImage(String dockerImageName) {
  imageName = new DockerImageName(dockerImageName);
}
origin: testcontainers/testcontainers-java

public synchronized static ResourceReaper instance() {
  if (instance == null) {
    instance = new ResourceReaper();
  }
  return instance;
}
origin: testcontainers/testcontainers-java

@Override
protected boolean isApplicable() {
  final boolean nettyDoesSupportMacUnixSockets = SystemUtils.IS_OS_MAC_OSX &&
      ComparableVersion.OS_VERSION.isGreaterThanOrEqualTo("10.12");
  return SystemUtils.IS_OS_LINUX || nettyDoesSupportMacUnixSockets;
}
origin: testcontainers/testcontainers-java

/**
 * Removes a network by ID.
 * @param id
 */
public void removeNetworkById(String id) {
 removeNetwork(id);
}
origin: testcontainers/testcontainers-java

/**
 * Obtain an instance of the DockerMachineClient wrapper.
 *
 * @return the singleton instance of DockerMachineClient
 */
public synchronized static DockerMachineClient instance() {
  if (instance == null) {
    instance = new DockerMachineClient();
  }
  return instance;
}
origin: testcontainers/testcontainers-java

@Override
public T get() throws InterruptedException, ExecutionException {
  return getResolvedValue();
}
origin: testcontainers/testcontainers-java

@Test
public void forClasspathResourceWithAbsolutePath() throws Exception {
  final MountableFile mountableFile = MountableFile.forClasspathResource("/mappable-resource/test-resource.txt");
  performChecks(mountableFile);
}
origin: testcontainers/testcontainers-java

@Test
public void forClasspathResourceFromJar() throws Exception {
  final MountableFile mountableFile = MountableFile.forClasspathResource("META-INF/dummy_unique_name.txt");
  performChecks(mountableFile);
}
origin: testcontainers/testcontainers-java

@Test
public void forClasspathResourceFromJarWithAbsolutePath() throws Exception {
  final MountableFile mountableFile = MountableFile.forClasspathResource("/META-INF/dummy_unique_name.txt");
  performChecks(mountableFile);
}
org.testcontainers.utility

Most used classes

  • Base58
    Utility class for creation of random strings of 58 easy-to-distinguish characters.
  • TestcontainersConfiguration
    Provides a mechanism for fetching configuration/defaults from the classpath.
  • MountableFile
    An abstraction over files and classpath resources aimed at encapsulating all the complexity of gener
  • LogUtils
    Provides utility methods for logging.
  • TestEnvironment
    Provides utility methods for determining facts about the test environment.
  • DockerImageName,
  • DockerStatus,
  • LicenseAcceptance,
  • RegistryAuthLocator,
  • ResourceReaper$FilterRegistry,
  • AuditLogger,
  • AuthConfigUtil,
  • CommandLine$ShellCommandException,
  • CommandLine,
  • DockerImageName$Sha256Versioning,
  • DockerImageName$TagVersioning,
  • DockerImageName$Versioning,
  • DockerLoggerFactory,
  • DockerMachineClient
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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