Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
c4496606
Commit
c4496606
authored
Apr 20, 2018
by
Madhura Bhave
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.0.x'
parents
719fcb40
5afa7d19
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
SslConnectorCustomizerTests.java
...boot/web/embedded/tomcat/SslConnectorCustomizerTests.java
+5
-0
TomcatServletWebServerFactoryTests.java
...b/embedded/tomcat/TomcatServletWebServerFactoryTests.java
+4
-0
No files found.
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/tomcat/SslConnectorCustomizerTests.java
View file @
c4496606
...
...
@@ -18,6 +18,7 @@ package org.springframework.boot.web.embedded.tomcat;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.net.URL
;
import
java.security.KeyStore
;
import
java.security.KeyStoreException
;
import
java.security.NoSuchAlgorithmException
;
...
...
@@ -25,6 +26,7 @@ import java.security.cert.CertificateException;
import
org.apache.catalina.connector.Connector
;
import
org.apache.catalina.startup.Tomcat
;
import
org.apache.catalina.webresources.TomcatURLStreamHandlerFactory
;
import
org.apache.tomcat.util.net.SSLHostConfig
;
import
org.junit.After
;
import
org.junit.Before
;
...
...
@@ -34,6 +36,7 @@ import org.springframework.boot.web.server.Ssl;
import
org.springframework.boot.web.server.SslStoreProvider
;
import
org.springframework.core.io.ClassPathResource
;
import
org.springframework.core.io.Resource
;
import
org.springframework.test.util.ReflectionTestUtils
;
import
static
org
.
assertj
.
core
.
api
.
Assertions
.
assertThat
;
import
static
org
.
mockito
.
BDDMockito
.
given
;
...
...
@@ -60,6 +63,8 @@ public class SslConnectorCustomizerTests {
@After
public
void
stop
()
throws
Exception
{
ReflectionTestUtils
.
setField
(
TomcatURLStreamHandlerFactory
.
class
,
"instance"
,
null
);
ReflectionTestUtils
.
setField
(
URL
.
class
,
"factory"
,
null
);
this
.
tomcat
.
stop
();
}
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/tomcat/TomcatServletWebServerFactoryTests.java
View file @
c4496606
...
...
@@ -18,6 +18,7 @@ package org.springframework.boot.web.embedded.tomcat;
import
java.io.File
;
import
java.io.IOException
;
import
java.net.URL
;
import
java.nio.charset.Charset
;
import
java.nio.charset.StandardCharsets
;
import
java.time.Duration
;
...
...
@@ -44,6 +45,7 @@ import org.apache.catalina.core.StandardWrapper;
import
org.apache.catalina.startup.Tomcat
;
import
org.apache.catalina.util.CharsetMapper
;
import
org.apache.catalina.valves.RemoteIpValve
;
import
org.apache.catalina.webresources.TomcatURLStreamHandlerFactory
;
import
org.apache.jasper.servlet.JspServlet
;
import
org.apache.tomcat.JarScanFilter
;
import
org.junit.After
;
...
...
@@ -86,6 +88,8 @@ public class TomcatServletWebServerFactoryTests
@After
public
void
restoreTccl
()
{
ReflectionTestUtils
.
setField
(
TomcatURLStreamHandlerFactory
.
class
,
"instance"
,
null
);
ReflectionTestUtils
.
setField
(
URL
.
class
,
"factory"
,
null
);
Thread
.
currentThread
().
setContextClassLoader
(
getClass
().
getClassLoader
());
}
...
...
Write
Preview
Markdown
is supported
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