Test passing null cert/keys to WifiEnterpriseConfig
am: 88b3c589ad
Change-Id: Ia92c2ad4b7562250aa69d3e8dbb3b8d8607d4136
This commit is contained in:
@@ -86,6 +86,16 @@ public class WifiEnterpriseConfigTest {
|
||||
assertTrue(result[0] == cert0 && result[1] == cert1);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSetClientKeyEntryWithNull() {
|
||||
mEnterpriseConfig.setClientKeyEntry(null, null);
|
||||
assertEquals(null, mEnterpriseConfig.getClientCertificateChain());
|
||||
assertEquals(null, mEnterpriseConfig.getClientCertificate());
|
||||
mEnterpriseConfig.setClientKeyEntryWithCertificateChain(null, null);
|
||||
assertEquals(null, mEnterpriseConfig.getClientCertificateChain());
|
||||
assertEquals(null, mEnterpriseConfig.getClientCertificate());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSetClientCertificateChain() {
|
||||
PrivateKey clientKey = FakeKeys.RSA_KEY1;
|
||||
|
||||
Reference in New Issue
Block a user