From 8b226334434eaae5b9da583944ec4b9e61358d91 Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Tue, 10 Nov 2009 19:12:49 +0000 Subject: [PATCH] o Strengthened IT git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@834604 13f79535-47bb-0310-9956-ffa450edef68 --- ...avenITmng4231SnapshotUpdatePolicyTest.java | 10 +++-- .../0.1-SNAPSHOT/a-0.1-20090708.185113-2.pom | 8 ++++ .../0.1-SNAPSHOT/b-0.1-20091110.190117-1.jar | Bin 0 -> 1947 bytes .../0.1-SNAPSHOT/b-0.1-20091110.190117-1.pom | 36 ++++++++++++++++++ .../mng4231/b/0.1-SNAPSHOT/maven-metadata.xml | 13 +++++++ .../maven/its/mng4231/b/maven-metadata.xml | 12 ++++++ 6 files changed, 75 insertions(+), 4 deletions(-) create mode 100644 its/core-it-suite/src/test/resources/mng-4231/repo-2/org/apache/maven/its/mng4231/b/0.1-SNAPSHOT/b-0.1-20091110.190117-1.jar create mode 100644 its/core-it-suite/src/test/resources/mng-4231/repo-2/org/apache/maven/its/mng4231/b/0.1-SNAPSHOT/b-0.1-20091110.190117-1.pom create mode 100644 its/core-it-suite/src/test/resources/mng-4231/repo-2/org/apache/maven/its/mng4231/b/0.1-SNAPSHOT/maven-metadata.xml create mode 100644 its/core-it-suite/src/test/resources/mng-4231/repo-2/org/apache/maven/its/mng4231/b/maven-metadata.xml diff --git a/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng4231SnapshotUpdatePolicyTest.java b/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng4231SnapshotUpdatePolicyTest.java index 252e9ab5f8..f554dc0ad5 100644 --- a/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng4231SnapshotUpdatePolicyTest.java +++ b/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng4231SnapshotUpdatePolicyTest.java @@ -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 ) ); } } diff --git a/its/core-it-suite/src/test/resources/mng-4231/repo-2/org/apache/maven/its/mng4231/a/0.1-SNAPSHOT/a-0.1-20090708.185113-2.pom b/its/core-it-suite/src/test/resources/mng-4231/repo-2/org/apache/maven/its/mng4231/a/0.1-SNAPSHOT/a-0.1-20090708.185113-2.pom index 6c93385284..86b177c3b9 100644 --- a/its/core-it-suite/src/test/resources/mng-4231/repo-2/org/apache/maven/its/mng4231/a/0.1-SNAPSHOT/a-0.1-20090708.185113-2.pom +++ b/its/core-it-suite/src/test/resources/mng-4231/repo-2/org/apache/maven/its/mng4231/a/0.1-SNAPSHOT/a-0.1-20090708.185113-2.pom @@ -33,4 +33,12 @@ under the License. file:///${basedir}/repo + + + + org.apache.maven.its.mng4231 + b + 0.1-SNAPSHOT + + diff --git a/its/core-it-suite/src/test/resources/mng-4231/repo-2/org/apache/maven/its/mng4231/b/0.1-SNAPSHOT/b-0.1-20091110.190117-1.jar b/its/core-it-suite/src/test/resources/mng-4231/repo-2/org/apache/maven/its/mng4231/b/0.1-SNAPSHOT/b-0.1-20091110.190117-1.jar new file mode 100644 index 0000000000000000000000000000000000000000..fd0936d428ddc2e2f492b57be645eaf4df72d3f6 GIT binary patch literal 1947 zcmWIWW@h1H00GSfS=L|%l;8x?zOEsTx}JV+`TuQ}lbAEG>!4=~NPm6TC&YjTl)^*}wf3hTOikS8R zm5QBnx`TwhgMv%uYONKK;TD=~93)yJd^+eeP{zx+*z3R}zjc1=1nRohg?pKuC@{8d zu3#>X(~Hw%fH@1(_58@r%1taw&4c>^Q?U-F;{2j?y~KjV5*ts65K2f25Df(hD`PUyoiZ`VKWN@gDJ^o73AmYRpjQBhD7JjHV~>ma}Rb`UFOeNDv>?Iz>497g!HWC zpKW&TX;WRlao3Zo;MT*{d0{gSntln|dq7C~;-)8MI%^xb_hhgMtXmx6IyJR9`S#XF zS5Gy(VHJw|D3<+%@4(bZQ`$maR%;B*V`O`JArKhOSAY(M_v zpPk?5CsxfrZDY<|UajK)OmkkEz;gd}#j}@$3nyp@^(E%7-Sk0Fc{|spPYLxe4VGY?7reAs4T=$5N zQ@N%bw>z>>Y;o7tpyHadhwXQ zO4|ZGathw~{L7M^^k2#GiuKldW>~)E0GB$g%-ce0fQh{hh;7J9^aVxv1*t_PnW@FW zW&UTqb-i>veFHsKg?#YU@jmI))7P_m8~#s*h^QCVh~u; zs179I+K|dxd=`TWLI?m^ybs8Pn*b{oVb)_W7!jIZV`?T)OyV{fR8T?y$XTY07|z0L zGN{;unT@^Rgqgmiv5{o6p~Wb&6`;xyJ((h`C literal 0 HcmV?d00001 diff --git a/its/core-it-suite/src/test/resources/mng-4231/repo-2/org/apache/maven/its/mng4231/b/0.1-SNAPSHOT/b-0.1-20091110.190117-1.pom b/its/core-it-suite/src/test/resources/mng-4231/repo-2/org/apache/maven/its/mng4231/b/0.1-SNAPSHOT/b-0.1-20091110.190117-1.pom new file mode 100644 index 0000000000..13b2341390 --- /dev/null +++ b/its/core-it-suite/src/test/resources/mng-4231/repo-2/org/apache/maven/its/mng4231/b/0.1-SNAPSHOT/b-0.1-20091110.190117-1.pom @@ -0,0 +1,36 @@ + + + + + + 4.0.0 + + org.apache.maven.its.mng4231 + b + 0.1-SNAPSHOT + jar + + + + maven-core-it + file:///${basedir}/repo + + + diff --git a/its/core-it-suite/src/test/resources/mng-4231/repo-2/org/apache/maven/its/mng4231/b/0.1-SNAPSHOT/maven-metadata.xml b/its/core-it-suite/src/test/resources/mng-4231/repo-2/org/apache/maven/its/mng4231/b/0.1-SNAPSHOT/maven-metadata.xml new file mode 100644 index 0000000000..fc7cd42798 --- /dev/null +++ b/its/core-it-suite/src/test/resources/mng-4231/repo-2/org/apache/maven/its/mng4231/b/0.1-SNAPSHOT/maven-metadata.xml @@ -0,0 +1,13 @@ + + + org.apache.maven.its.mng4231 + b + 0.1-SNAPSHOT + + + 20091110.190117 + 1 + + 20091110190117 + + diff --git a/its/core-it-suite/src/test/resources/mng-4231/repo-2/org/apache/maven/its/mng4231/b/maven-metadata.xml b/its/core-it-suite/src/test/resources/mng-4231/repo-2/org/apache/maven/its/mng4231/b/maven-metadata.xml new file mode 100644 index 0000000000..788cd21027 --- /dev/null +++ b/its/core-it-suite/src/test/resources/mng-4231/repo-2/org/apache/maven/its/mng4231/b/maven-metadata.xml @@ -0,0 +1,12 @@ + + + org.apache.maven.its.mng4231 + b + 0.1-SNAPSHOT + + + 0.1-SNAPSHOT + + 20091110190117 + +