Skip to content

Commit

Permalink
Update Javadocs
Browse files Browse the repository at this point in the history
  • Loading branch information
rnorth committed Oct 20, 2020
1 parent 58be3e0 commit f5498d5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
import lombok.extern.slf4j.Slf4j;

/**
* TODO: Javadocs
* {@link ImageNameSubstitutor} which takes replacement image names from configuration.
* See {@link TestcontainersConfiguration} for the subset of image names which can be substituted using this mechanism.
*/
@Slf4j
public class ConfigurationFileImageNameSubstitutor extends ImageNameSubstitutor {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
import lombok.extern.slf4j.Slf4j;

/**
* TODO: Javadocs
* Testcontainers' default implementation of {@link ImageNameSubstitutor}.
* Delegates to {@link ConfigurationFileImageNameSubstitutor} followed by {@link PrefixingImageNameSubstitutor}.
*/
@Slf4j
public class DefaultImageNameSubstitutor extends ImageNameSubstitutor {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class PrefixingImageNameSubstitutor extends ImageNameSubstitutor {

@Override
public DockerImageName apply(DockerImageName original) {
final String prefix = configuration.getEnvVarOrProperty(PROPERTY_KEY);
final String prefix = configuration.getEnvVarOrProperty(PROPERTY_KEY, "");

if (prefix != null && !prefix.isEmpty()) {
if (!original.asCanonicalNameString().startsWith(prefix)) {
Expand Down

0 comments on commit f5498d5

Please sign in to comment.