summaryrefslogtreecommitdiffstats
path: root/luni
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2015-06-17 14:23:33 +0100
committerNarayan Kamath <narayan@google.com>2015-06-18 09:52:58 +0000
commit7ff8792c00d3ec7a127dace59caf7e5a00fe5c2a (patch)
tree8159eeadcd9e19c8b84f48282a144f2e9c2af3fb /luni
parentca6b6ed5a9b4f16a2ecadf8e1d57ca238e387476 (diff)
downloadlibcore-7ff8792c00d3ec7a127dace59caf7e5a00fe5c2a.zip
libcore-7ff8792c00d3ec7a127dace59caf7e5a00fe5c2a.tar.gz
libcore-7ff8792c00d3ec7a127dace59caf7e5a00fe5c2a.tar.bz2
ProviderTest: Add provider name to failure message.
bug: 21870226 Change-Id: I1d91661599276394343b36a6601026ad46fc6b30
Diffstat (limited to 'luni')
-rw-r--r--luni/src/test/java/libcore/java/security/ProviderTest.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/luni/src/test/java/libcore/java/security/ProviderTest.java b/luni/src/test/java/libcore/java/security/ProviderTest.java
index 9cb780a..fafedd3 100644
--- a/luni/src/test/java/libcore/java/security/ProviderTest.java
+++ b/luni/src/test/java/libcore/java/security/ProviderTest.java
@@ -218,7 +218,8 @@ public class ProviderTest extends TestCase {
} catch (ClassNotFoundException e) {
// Sun forgot their own class
if (!className.equals("sun.security.pkcs11.P11MAC")) {
- fail("Could not find class " + className + " for " + typeAndAlgorithm);
+ fail("Could not find class " + className + " for " + typeAndAlgorithm
+ + " [provider=" + provider.getName() + "]");
}
}
}
@@ -227,8 +228,9 @@ public class ProviderTest extends TestCase {
for (Entry<String,String> entry : aliases.entrySet()) {
String alias = entry.getKey();
String actual = entry.getValue();
- assertTrue("Could not find implementation " + actual + " for alias " + alias,
- implementations.containsKey(actual));
+ assertTrue("Could not find implementation " + actual + " for alias " + alias +
+ " [provider=" + provider.getName() + "]",
+ implementations.containsKey(actual));
}
}
}