114115116117118119120121122123124
switch (certificateValidationBehavior) { case VALIDATE: fetchOptions.validateCertificate(); break; case DO_NOT_VALIDATE: fetchOptions.doNotValidateCertificate(); break; default: break; } return new UrlFetchRequest(fetchOptions, httpMethod, url);
8081828384858687888990
} @Test public void testDoNotValidateCertificate() throws Exception { FetchOptions options = buildFetchOptions(); options.doNotValidateCertificate(); testOptions(options); } @Test public void testWithDeadline() throws Exception {