Skip to content

Commit 15f723f

Browse files
committed
Return SSL tests to run status. Delegate task handling was tripping up over the UnsupportedOperationException.
1 parent ee13ad8 commit 15f723f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

api/src/test/java/com/ning/http/client/async/NoNullResponseTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010 Ning, Inc.
2+
* Copyright 2010-2013 Ning, Inc.
33
*
44
* Ning licenses this file to you under the Apache License, version 2.0
55
* (the "License"); you may not use this file except in compliance with the
@@ -72,11 +72,11 @@ private SSLContext getSSLContext() throws GeneralSecurityException {
7272

7373
private static class MockTrustManager implements X509TrustManager {
7474
public X509Certificate[] getAcceptedIssuers() {
75-
throw new UnsupportedOperationException();
75+
return null;
7676
}
7777

7878
public void checkClientTrusted(final X509Certificate[] chain, final String authType) throws CertificateException {
79-
throw new UnsupportedOperationException();
79+
// do nothing.
8080
}
8181

8282
public void checkServerTrusted(final X509Certificate[] chain, final String authType) throws CertificateException {

0 commit comments

Comments
 (0)