mirror of https://github.com/apache/maven.git
o Strengthened IT
git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@834604 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
306f47cb25
commit
8b22633443
|
@ -72,7 +72,8 @@ public class MavenITmng4231SnapshotUpdatePolicyTest
|
|||
verifier.resetStreams();
|
||||
|
||||
Properties checksums = verifier.loadProperties( "target/checksum.properties" );
|
||||
assertChecksum( "db3f17644e813af768ae6e82a6d0a2f29aef8988", checksums );
|
||||
assertChecksum( "db3f17644e813af768ae6e82a6d0a2f29aef8988", "a-0.1-SNAPSHOT.jar", checksums );
|
||||
assertChecksum( "5e3265f3ed55e8b217ff9db444fd8d888962a990", "b-0.1-SNAPSHOT.jar", checksums );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -108,12 +109,13 @@ public class MavenITmng4231SnapshotUpdatePolicyTest
|
|||
verifier.resetStreams();
|
||||
|
||||
Properties checksums = verifier.loadProperties( "target/checksum.properties" );
|
||||
assertChecksum( "97c4e1a857d8957594ccbd2ac19d51885478ec80", checksums );
|
||||
assertChecksum( "97c4e1a857d8957594ccbd2ac19d51885478ec80", "a-0.1-SNAPSHOT.jar", checksums );
|
||||
assertChecksum( "", "b-0.1-SNAPSHOT.jar", checksums );
|
||||
}
|
||||
|
||||
private void assertChecksum( String checksum, Properties checksums )
|
||||
private void assertChecksum( String checksum, String jar, Properties checksums )
|
||||
{
|
||||
assertEquals( checksum, checksums.getProperty( "a-0.1-SNAPSHOT.jar" ).toLowerCase( java.util.Locale.ENGLISH ) );
|
||||
assertEquals( checksum, checksums.getProperty( jar, "" ).toLowerCase( java.util.Locale.ENGLISH ) );
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -33,4 +33,12 @@ under the License.
|
|||
<url>file:///${basedir}/repo</url>
|
||||
</repository>
|
||||
</distributionManagement>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.its.mng4231</groupId>
|
||||
<artifactId>b</artifactId>
|
||||
<version>0.1-SNAPSHOT</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
|
|
Binary file not shown.
|
@ -0,0 +1,36 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
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.mng4231</groupId>
|
||||
<artifactId>b</artifactId>
|
||||
<version>0.1-SNAPSHOT</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<id>maven-core-it</id>
|
||||
<url>file:///${basedir}/repo</url>
|
||||
</repository>
|
||||
</distributionManagement>
|
||||
</project>
|
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<metadata>
|
||||
<groupId>org.apache.maven.its.mng4231</groupId>
|
||||
<artifactId>b</artifactId>
|
||||
<version>0.1-SNAPSHOT</version>
|
||||
<versioning>
|
||||
<snapshot>
|
||||
<timestamp>20091110.190117</timestamp>
|
||||
<buildNumber>1</buildNumber>
|
||||
</snapshot>
|
||||
<lastUpdated>20091110190117</lastUpdated>
|
||||
</versioning>
|
||||
</metadata>
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<metadata>
|
||||
<groupId>org.apache.maven.its.mng4231</groupId>
|
||||
<artifactId>b</artifactId>
|
||||
<version>0.1-SNAPSHOT</version>
|
||||
<versioning>
|
||||
<versions>
|
||||
<version>0.1-SNAPSHOT</version>
|
||||
</versions>
|
||||
<lastUpdated>20091110190117</lastUpdated>
|
||||
</versioning>
|
||||
</metadata>
|
Loading…
Reference in New Issue