Skip to content

Commit

Permalink
fix ITs
Browse files Browse the repository at this point in the history
Signed-off-by: Olivier Lamy <[email protected]>
  • Loading branch information
olamy committed Feb 13, 2024
1 parent 324ad85 commit e824be4
Show file tree
Hide file tree
Showing 22 changed files with 148 additions and 284 deletions.
5 changes: 1 addition & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,7 @@
<system>github</system>
<url>https://github.com/mojohaus/jdepend-maven-plugin/issues</url>
</issueManagement>
<ciManagement>
<system>Travis-CI</system>
<url>https://travis-ci.org/mojohaus/jdepend-maven-plugin</url>
</ciManagement>


<properties>
<mavenVersion>3.2.5</mavenVersion>
Expand Down
2 changes: 1 addition & 1 deletion src/it/jdepend-01/invoker.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
# limitations under the License.
# #L%
###
invoker.goals=clean site verifier:verify
invoker.goals=clean site
12 changes: 0 additions & 12 deletions src/it/jdepend-01/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,6 @@
<version>1.0-SNAPSHOT</version>
<name>JDepend Quick Test When running site goal</name>
<url>http://maven.apache.org</url>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-verifier-plugin</artifactId>
<version>1.0</version>
<configuration>
<verificationFile>src/verifier/verifications.xml</verificationFile>
</configuration>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
Expand Down
59 changes: 0 additions & 59 deletions src/it/jdepend-01/src/verifier/verifications.xml

This file was deleted.

28 changes: 28 additions & 0 deletions src/it/jdepend-01/verify.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

// Verify the existence of some files
assert new File( basedir,'target/jdepend-report.xml' ).exists()

assert new File( basedir,'target/site/jdepend-report.html' ).exists()
assert new File( basedir,'target/site/dependencies.html' ).exists()
assert new File( basedir,'target/site/index.html' ).exists()
assert new File( basedir,'target/site/licenses.html' ).exists()
assert new File( basedir,'target/site/project-reports.html' ).exists()
assert new File( basedir,'target/site/project-info.html' ).exists()
2 changes: 1 addition & 1 deletion src/it/jdepend-02/invoker.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
# limitations under the License.
# #L%
###
invoker.goals=clean site verifier:verify
invoker.goals=clean site
10 changes: 0 additions & 10 deletions src/it/jdepend-02/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,6 @@
<url>http://maven.apache.org</url>
<build>
<outputDirectory>target/output-classes</outputDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-verifier-plugin</artifactId>
<version>1.0</version>
<configuration>
<verificationFile>src/verifier/verifications.xml</verificationFile>
</configuration>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
Expand Down
59 changes: 0 additions & 59 deletions src/it/jdepend-02/src/verifier/verifications.xml

This file was deleted.

28 changes: 28 additions & 0 deletions src/it/jdepend-02/verify.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

// Verify the existence of some files
assert new File( basedir,'target/jdepend-report.xml' ).exists()

assert new File( basedir,'target/site/jdepend-report.html' ).exists()
assert new File( basedir,'target/site/dependencies.html' ).exists()
assert new File( basedir,'target/site/index.html' ).exists()
assert new File( basedir,'target/site/licenses.html' ).exists()
assert new File( basedir,'target/site/project-reports.html' ).exists()
assert new File( basedir,'target/site/project-info.html' ).exists()
2 changes: 1 addition & 1 deletion src/it/jdepend-03/invoker.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
# limitations under the License.
# #L%
###
invoker.goals=clean org.codehaus.mojo:jdepend-maven-plugin:generate verifier:verify
invoker.goals=clean org.codehaus.mojo:jdepend-maven-plugin:generate
8 changes: 0 additions & 8 deletions src/it/jdepend-03/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,6 @@
<url>http://maven.apache.org</url>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-verifier-plugin</artifactId>
<version>1.0</version>
<configuration>
<verificationFile>src/verifier/verifications.xml</verificationFile>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jdepend-maven-plugin</artifactId>
Expand Down
32 changes: 0 additions & 32 deletions src/it/jdepend-03/src/verifier/verifications.xml

This file was deleted.

24 changes: 24 additions & 0 deletions src/it/jdepend-03/verify.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

// Verify the existence of some files
assert new File( basedir,'target/jdepend-report.xml' ).exists()

assert new File( basedir,'target/site/jdepend-report.html' ).exists()
assert new File( basedir,'target/classes/org/codehaus/mojo/App.class' ).exists()
2 changes: 1 addition & 1 deletion src/it/jdepend-04/invoker.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
# limitations under the License.
# #L%
###
invoker.goals=clean org.codehaus.mojo:jdepend-maven-plugin:generate verifier:verify
invoker.goals=clean org.codehaus.mojo:jdepend-maven-plugin:generate
32 changes: 0 additions & 32 deletions src/it/jdepend-04/src/verifier/verifications.xml

This file was deleted.

25 changes: 25 additions & 0 deletions src/it/jdepend-04/verify.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

// Verify the existence of some files
assert new File( basedir,'target/jdepend-report.xml' ).exists()

assert new File( basedir,'target/output-site-directory/jdepend-report.html' ).exists()
assert new File( basedir,'target/classes/org/codehaus/mojo/App.class' ).exists()

2 changes: 1 addition & 1 deletion src/it/jdepend-05/invoker.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
# limitations under the License.
# #L%
###
invoker.goals=clean org.codehaus.mojo:jdepend-maven-plugin:generate verifier:verify -Djdepend.skip=true
invoker.goals=clean org.codehaus.mojo:jdepend-maven-plugin:generate -Djdepend.skip=true
Loading

0 comments on commit e824be4

Please sign in to comment.