summaryrefslogtreecommitdiffstats
path: root/luni
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2015-05-18 10:27:29 -0700
committerKenny Root <kroot@google.com>2015-05-19 08:50:53 -0700
commit5b2c1c08fad0f48c5d3ec89164feb4b0ff8e1ffb (patch)
tree29d152a4ebf7f691f04128d9d42d559022dbce2d /luni
parent6c384ac7ee074f2e54f04be94846d528430abc26 (diff)
downloadlibcore-5b2c1c08fad0f48c5d3ec89164feb4b0ff8e1ffb.zip
libcore-5b2c1c08fad0f48c5d3ec89164feb4b0ff8e1ffb.tar.gz
libcore-5b2c1c08fad0f48c5d3ec89164feb4b0ff8e1ffb.tar.bz2
Follow-up for incorrect test pre-condition
The provider should *not* be present before we install this provider, so update the test to actually assert the correct state. (cherry picked from commit b9129dc7847dd1a89fb5f8d3108369b4da3b0e21) Bug: 21159204 Change-Id: I30f4d4f47fcb6bf278b81c5fd5900d47233cefdb
Diffstat (limited to 'luni')
-rw-r--r--luni/src/test/java/libcore/java/security/ProviderTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/luni/src/test/java/libcore/java/security/ProviderTest.java b/luni/src/test/java/libcore/java/security/ProviderTest.java
index f234122..9cb780a 100644
--- a/luni/src/test/java/libcore/java/security/ProviderTest.java
+++ b/luni/src/test/java/libcore/java/security/ProviderTest.java
@@ -549,7 +549,7 @@ public class ProviderTest extends TestCase {
public void testProvider_removeProvider_Success() throws Exception {
MockProvider provider = new MockProvider("MockProvider");
- assertNotNull(Security.getProvider(provider.getName()));
+ assertNull(Security.getProvider(provider.getName()));
Security.addProvider(provider);
assertNotNull(Security.getProvider(provider.getName()));
Security.removeProvider(provider.getName());