Skip to content

Commit

Permalink
Fix PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
talarian1 committed Dec 12, 2021
1 parent f51dc5e commit c9f9332
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import org.gradle.testkit.runner.BuildResult;
import org.gradle.testkit.runner.BuildTask;
import org.gradle.testkit.runner.GradleRunner;
import org.jfrog.build.api.Artifact;
import org.jfrog.build.api.Build;
import org.jfrog.build.api.Dependency;
import org.jfrog.build.api.Module;
Expand Down Expand Up @@ -262,21 +261,21 @@ private static void checkBuildInfoModules(BuildInfo buildInfo, int expectedModul
}

/**
* Check expected properties is found on each published artifacts.
* Check that the expected properties are found on each published artifact.
*
* @param artifactoryManager - ArtifactoryManager client
*/
static void checkArtifactsProps(ArtifactoryManager artifactoryManager) throws IOException {
// Test single value prop
PropertySearchResult artifacts = artifactoryManager.searchArtifactsByProperties("gradle.test.single.value.key=basic");
assertTrue(artifacts.getResults().size()>=12);
assertTrue(artifacts.getResults().size() >= 12);
// Test multi value props
artifacts = artifactoryManager.searchArtifactsByProperties("gradle.test.multi.values.key=val1");
assertTrue(artifacts.getResults().size()>= 12);
assertTrue(artifacts.getResults().size() >= 12);
artifacts = artifactoryManager.searchArtifactsByProperties("gradle.test.multi.values.key=val2");
assertTrue(artifacts.getResults().size()>=12);
assertTrue(artifacts.getResults().size() >= 12);
artifacts = artifactoryManager.searchArtifactsByProperties("gradle.test.multi.values.key=val3");
assertTrue(artifacts.getResults().size()>= 12);
assertTrue(artifacts.getResults().size() >= 12);
}

/**
Expand Down

0 comments on commit c9f9332

Please sign in to comment.