Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ist-unix
CAS-server
Commits
a260e4b8
Commit
a260e4b8
authored
Sep 24, 2015
by
Misagh Moayyed
Browse files
Fixed checkstyle issue
parent
717e0038
Changes
1
Hide whitespace changes
Inline
Side-by-side
cas-server-core/src/test/java/org/jasig/cas/util/http/SimpleHttpClientTests.java
View file @
a260e4b8
...
@@ -18,19 +18,16 @@
...
@@ -18,19 +18,16 @@
*/
*/
package
org.jasig.cas.util.http
;
package
org.jasig.cas.util.http
;
import
static
org
.
junit
.
Assert
.
assertFalse
;
import
org.apache.http.conn.ssl.NoopHostnameVerifier
;
import
static
org
.
junit
.
Assert
.
assertTrue
;
import
org.apache.http.conn.ssl.SSLConnectionSocketFactory
;
import
org.junit.Test
;
import
java.security.cert.X509Certificate
;
import
javax.net.ssl.SSLContext
;
import
javax.net.ssl.SSLContext
;
import
javax.net.ssl.TrustManager
;
import
javax.net.ssl.TrustManager
;
import
javax.net.ssl.X509TrustManager
;
import
javax.net.ssl.X509TrustManager
;
import
java.security.cert.X509Certificate
;
import
org.apache.http.conn.ssl.NoopHostnameVerifier
;
import
static
org
.
junit
.
Assert
.*;
import
org.apache.http.conn.ssl.SSLConnectionSocketFactory
;
import
org.junit.Ignore
;
import
org.junit.Test
;
/**
/**
* Test cases for {@link SimpleHttpClient}.
* Test cases for {@link SimpleHttpClient}.
...
@@ -72,6 +69,7 @@ public class SimpleHttpClientTests {
...
@@ -72,6 +69,7 @@ public class SimpleHttpClientTests {
private
SSLConnectionSocketFactory
getFriendlyToAllSSLSocketFactory
()
throws
Exception
{
private
SSLConnectionSocketFactory
getFriendlyToAllSSLSocketFactory
()
throws
Exception
{
final
TrustManager
trm
=
new
X509TrustManager
()
{
final
TrustManager
trm
=
new
X509TrustManager
()
{
@Override
public
X509Certificate
[]
getAcceptedIssuers
()
{
public
X509Certificate
[]
getAcceptedIssuers
()
{
return
null
;
return
null
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment