mirror of https://github.com/apache/maven.git
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 @@ package org.apache.maven.it;
|
|||
*/
|
||||
|
||||
import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.maven.it.Verifier;
|
||||
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
|
||||
extends AbstractMavenIntegrationTestCase
|
||||
|
@ -39,7 +40,7 @@ public class 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()
|
||||
throws Exception
|
||||
|
@ -47,15 +48,16 @@ public class MavenITmng2744checksumVerificationTest
|
|||
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-2744" );
|
||||
|
||||
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
|
||||
|
||||
verifier.deleteArtifact( "org.apache.maven.its.mng2744", "a", "1", "pom" );
|
||||
verifier.deleteArtifact( "org.apache.maven.its.mng2744", "a", "1", "jar" );
|
||||
verifier.deleteArtifact( "org.apache.maven.its.mng2744", "b", "1", "pom" );
|
||||
verifier.deleteArtifact( "org.apache.maven.its.mng2744", "b", "1", "jar" );
|
||||
|
||||
verifier.executeGoal( "compile" );
|
||||
verifier.setAutoclean( false );
|
||||
verifier.deleteArtifacts( "org.apache.maven.its.mng2744" );
|
||||
verifier.executeGoal( "validate" );
|
||||
verifier.verifyErrorFreeLog();
|
||||
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"?>
|
||||
<project
|
||||
xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
|
||||
<project>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>org.apache.maven.its.mng2744</groupId>
|
||||
<artifactId>mng2744</artifactId>
|
||||
<artifactId>test</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<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>
|
||||
<dependency>
|
||||
|
@ -35,4 +57,23 @@
|
|||
</snapshots>
|
||||
</repository>
|
||||
</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>
|
||||
|
|
Loading…
Reference in New Issue