Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMykola Nikishov2019-04-03 14:54:06 -0400
committerMykola Nikishov2019-04-04 05:06:20 -0400
commit2425ef6af6f6ccf77147a1006dc1c7b643a257c8 (patch)
tree87cc2651f121e3b8ccadf11ce486e92ca81d62cb
parent64191ccf257dfd5f728ffff5dbb5d1084df73a6c (diff)
downloadrt.equinox.p2-I20190407-1800.tar.gz
rt.equinox.p2-I20190407-1800.tar.xz
rt.equinox.p2-I20190407-1800.zip
Change-Id: Ib6ab9e55e1cd41c16c5b5b54265c3e80bf2a2435 Signed-off-by: Mykola Nikishov <mn@mn.com.ua>
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/artifact/processors/ChecksumUtilitiesTest.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/artifact/processors/ChecksumUtilitiesTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/artifact/processors/ChecksumUtilitiesTest.java
index 7e426901e..9b2ba1052 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/artifact/processors/ChecksumUtilitiesTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/artifact/processors/ChecksumUtilitiesTest.java
@@ -13,6 +13,7 @@
*******************************************************************************/
package org.eclipse.equinox.p2.tests.artifact.processors;
+import static java.lang.String.format;
import static java.util.Arrays.asList;
import static java.util.Collections.emptyList;
import static java.util.Collections.emptySet;
@@ -69,9 +70,9 @@ public class ChecksumUtilitiesTest {
@Test
public void testChecksumProperty() {
Collection<ProcessingStep> checksumVerifiers = ChecksumUtilities.getChecksumVerifiers(artifactDescriptor, propertyType, emptySet());
- ChecksumVerifier verifier = (ChecksumVerifier) checksumVerifiers.iterator().next();
- assertEquals(1, checksumVerifiers.size());
+ assertEquals(format("Verifier for property=%s", property), 1, checksumVerifiers.size());
+ ChecksumVerifier verifier = (ChecksumVerifier) checksumVerifiers.iterator().next();
assertEquals(digestAlgorithm, verifier.getAlgorithmName());
assertEquals(algorithmId, verifier.getAlgorithmId());
assertEquals(value, verifier.getExpectedChecksum());

Back to the top