From 7ff8792c00d3ec7a127dace59caf7e5a00fe5c2a Mon Sep 17 00:00:00 2001 From: Narayan Kamath Date: Wed, 17 Jun 2015 14:23:33 +0100 Subject: ProviderTest: Add provider name to failure message. bug: 21870226 Change-Id: I1d91661599276394343b36a6601026ad46fc6b30 --- luni/src/test/java/libcore/java/security/ProviderTest.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'luni') 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 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)); } } } -- cgit v1.1