Skip to content

Commit 15d7a17

Browse files
andrzejj0slawekjaranowski
authored andcommitted
#1001: added a test case
1 parent 0b0fdf8 commit 15d7a17

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
invoker.goals = ${project.groupId}:${project.artifactId}:${project.version}:display-dependency-updates
2+
invoker.mavenOpts = -Dversions.outputFile=./output.txt -DoutputEncoding=UTF-8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
5+
<groupId>localhost</groupId>
6+
<artifactId>it-display-dependency-updates-issue-1001-groupid</artifactId>
7+
<version>1.0</version>
8+
<packaging>pom</packaging>
9+
10+
<description>groupId is expressed via a Maven property</description>
11+
12+
<properties>
13+
<dep.groupId>localhost</dep.groupId>
14+
<dep.version>1.0</dep.version>
15+
</properties>
16+
17+
<dependencies>
18+
<dependency>
19+
<groupId>${dep.groupId}</groupId>
20+
<artifactId>dummy-api</artifactId>
21+
<version>${dep.version}</version>
22+
</dependency>
23+
</dependencies>
24+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def output = new File(basedir, "output.txt").text
2+
assert output =~ /\Qlocalhost:dummy-api\E\s*\.*\s*\Q1.0\E\s+->\s+\Q3.0\E\b/

0 commit comments

Comments
 (0)