Examples of ExceptionCauseMatcher


Examples of com.openshift.client.utils.ExceptionCauseMatcher

   * @see HttpsServerFake
   */
  @Test
  public void shouldFailHttpsSelfsignedCertificateNoCallback() throws Throwable {
    // pre-condition
    expectedException.expect(new ExceptionCauseMatcher(instanceOf(SSLHandshakeException.class)));

    // operation
    httpClient.get(httpsServerFake.getUrl(), IHttpClient.NO_TIMEOUT);
  }
View Full Code Here

Examples of com.openshift.client.utils.ExceptionCauseMatcher

   * @see HttpsServerFake
   */
  @Test
  public void shouldFailHttpsSelfsignedCertificate() throws Throwable {
    // pre-condition
    expectedException.expect(new ExceptionCauseMatcher(instanceOf(SSLHandshakeException.class)));

    IHttpClient client = new UrlConnectionHttpClientBuilder()
    .setAcceptMediaType(ACCEPT_APPLICATION_JSON)
    .setUserAgent("com.openshift.client.test")
    .setSSLCertificateCallback(new ISSLCertificateCallback() {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.