Merge "Streamline testInstall_compatibleContext()" am: 476d58c6bd
am: 2886890793
Change-Id: I6b5e764a2b8653937c0edaaa6b9450973a38dac4
This commit is contained in:
@@ -44,12 +44,9 @@ public class SSLSessionCacheTest extends TestCase {
|
||||
|
||||
try {
|
||||
SSLSessionCache.install(new SSLSessionCache(mock), ctx);
|
||||
clientCtx.getSession("www.foogle.com", 443);
|
||||
Mockito.verify(mock).getSessionData(Mockito.anyString(), Mockito.anyInt());
|
||||
} finally {
|
||||
// Restore cacheless behaviour.
|
||||
SSLSessionCache.install(null, ctx);
|
||||
clientCtx.getSession("www.foogle.com", 443);
|
||||
Mockito.verifyNoMoreInteractions(mock);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user