forked from mojohaus/versions
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolves mojohaus#1009: Fixing a broken test scenario
- Loading branch information
Showing
3 changed files
with
15 additions
and
32 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
versions-maven-plugin/src/it/it-display-plugin-updates-006/invoker.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
invoker.goals=versions:display-plugin-updates | ||
invoker.goals = ${project.groupId}:${project.artifactId}:${project.version}:display-plugin-updates | ||
invoker.mavenOpts = -Dversions.outputFile=./output.txt -DoutputEncoding=UTF-8 |
31 changes: 0 additions & 31 deletions
31
versions-maven-plugin/src/it/it-display-plugin-updates-006/verify.bsh
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
versions-maven-plugin/src/it/it-display-plugin-updates-006/verify.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// because no minimum Maven version is not specified for the project, multiple | ||
// possible updates for maven-deploy-plugin should be listed | ||
// | ||
// previously, the minimum Maven version for versions-maven-plugin was assumed due to #996 | ||
// which caused the plugin to only output the updates for the minimum version for versions-maven-plugin | ||
|
||
def output = new File(basedir, "output.txt").text | ||
assert output.contains('All plugins with a version specified are using the latest versions.') | ||
assert output =~ /\Qmaven-deploy-plugin\E\s*\.*\s*\Q2.3 -> 2.4\E/ | ||
assert output =~ /\Qmaven-deploy-plugin\E\s*\.*\s*\Q2.3 -> 2.8.1\E/ | ||
assert output =~ /\Qmaven-deploy-plugin\E\s*\.*\s*\Q2.3 -> 2.8.2\E/ | ||
assert output =~ /\Qmaven-deploy-plugin\E\s*\.*\s*\Q2.3 -> 3.0.0-M2\E/ | ||
assert output =~ /\Qmaven-deploy-plugin\E\s*\.*\s*\Q2.3 -> 3.1.1\E/ |