mirror of
https://github.com/apache/maven.git
synced 2025-02-08 02:59:22 +00:00
o Decoupled from production plugins
git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@730585 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8e5c507fe8
commit
cc794f3d83
@ -20,14 +20,15 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import org.apache.maven.it.Verifier;
|
import org.apache.maven.it.Verifier;
|
||||||
import org.apache.maven.it.util.ResourceExtractor;
|
import org.apache.maven.it.util.ResourceExtractor;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests that artifact checksums are properly verified.
|
* This is a test set for <a href="http://jira.codehaus.org/browse/MNG-2744">MNG-2744</a>.
|
||||||
|
*
|
||||||
|
* @author Benjamin Bentmann
|
||||||
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
public class MavenITmng2744checksumVerificationTest
|
public class MavenITmng2744checksumVerificationTest
|
||||||
extends AbstractMavenIntegrationTestCase
|
extends AbstractMavenIntegrationTestCase
|
||||||
@ -39,7 +40,7 @@ public MavenITmng2744checksumVerificationTest()
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests that hex digits are compared without regard to case.
|
* Tests that hex digits of checksums are compared without regard to case.
|
||||||
*/
|
*/
|
||||||
public void testitMNG2744()
|
public void testitMNG2744()
|
||||||
throws Exception
|
throws Exception
|
||||||
@ -47,15 +48,16 @@ public void testitMNG2744()
|
|||||||
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-2744" );
|
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-2744" );
|
||||||
|
|
||||||
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
|
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
|
||||||
|
verifier.setAutoclean( false );
|
||||||
verifier.deleteArtifact( "org.apache.maven.its.mng2744", "a", "1", "pom" );
|
verifier.deleteArtifacts( "org.apache.maven.its.mng2744" );
|
||||||
verifier.deleteArtifact( "org.apache.maven.its.mng2744", "a", "1", "jar" );
|
verifier.executeGoal( "validate" );
|
||||||
verifier.deleteArtifact( "org.apache.maven.its.mng2744", "b", "1", "pom" );
|
|
||||||
verifier.deleteArtifact( "org.apache.maven.its.mng2744", "b", "1", "jar" );
|
|
||||||
|
|
||||||
verifier.executeGoal( "compile" );
|
|
||||||
verifier.verifyErrorFreeLog();
|
verifier.verifyErrorFreeLog();
|
||||||
verifier.resetStreams();
|
verifier.resetStreams();
|
||||||
|
|
||||||
|
verifier.assertArtifactPresent( "org.apache.maven.its.mng2744", "a", "1", "jar" );
|
||||||
|
verifier.assertArtifactPresent( "org.apache.maven.its.mng2744", "a", "1", "pom" );
|
||||||
|
verifier.assertArtifactPresent( "org.apache.maven.its.mng2744", "b", "1", "jar" );
|
||||||
|
verifier.assertArtifactPresent( "org.apache.maven.its.mng2744", "b", "1", "pom" );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,14 +1,36 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project
|
|
||||||
xmlns="http://maven.apache.org/POM/4.0.0"
|
<!--
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
Licensed to the Apache Software Foundation (ASF) under one
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
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.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<project>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<groupId>org.apache.maven.its.mng2744</groupId>
|
<groupId>org.apache.maven.its.mng2744</groupId>
|
||||||
<artifactId>mng2744</artifactId>
|
<artifactId>test</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<version>1</version>
|
<version>1</version>
|
||||||
<name>[MNG-2744] checksum comparison should be case-insensitive</name>
|
|
||||||
|
<name>Maven Integration Test :: MNG-2744</name>
|
||||||
|
<description>
|
||||||
|
Tests that hex digits of checksums are compared without regard to case.
|
||||||
|
</description>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
@ -35,4 +57,23 @@
|
|||||||
</snapshots>
|
</snapshots>
|
||||||
</repository>
|
</repository>
|
||||||
</repositories>
|
</repositories>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.its.plugins</groupId>
|
||||||
|
<artifactId>maven-it-plugin-dependency-resolution</artifactId>
|
||||||
|
<version>2.1-SNAPSHOT</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>test</id>
|
||||||
|
<phase>validate</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>compile</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
</project>
|
</project>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user