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