diff options
author | Kenny Root <kroot@google.com> | 2015-05-18 10:27:29 -0700 |
---|---|---|
committer | Kenny Root <kroot@google.com> | 2015-05-19 08:50:53 -0700 |
commit | 5b2c1c08fad0f48c5d3ec89164feb4b0ff8e1ffb (patch) | |
tree | 29d152a4ebf7f691f04128d9d42d559022dbce2d /luni | |
parent | 6c384ac7ee074f2e54f04be94846d528430abc26 (diff) | |
download | libcore-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.java | 2 |
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()); |