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
0ad4e0e7
Commit
0ad4e0e7
authored
Jan 20, 2017
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '1.4.x' into 1.5.x
parents
bfd31975
9e2e8240
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
pom.xml
spring-boot-dependencies/pom.xml
+1
-1
TomcatEmbeddedServletContainerFactoryTests.java
...ed/tomcat/TomcatEmbeddedServletContainerFactoryTests.java
+10
-8
No files found.
spring-boot-dependencies/pom.xml
View file @
0ad4e0e7
...
...
@@ -185,7 +185,7 @@
<thymeleaf-layout-dialect.version>
1.4.0
</thymeleaf-layout-dialect.version>
<thymeleaf-extras-data-attribute.version>
1.3
</thymeleaf-extras-data-attribute.version>
<thymeleaf-extras-java8time.version>
2.1.0.RELEASE
</thymeleaf-extras-java8time.version>
<tomcat.version>
8.5.
6
</tomcat.version>
<tomcat.version>
8.5.
11
</tomcat.version>
<undertow.version>
1.4.8.Final
</undertow.version>
<unboundid-ldapsdk.version>
3.2.0
</unboundid-ldapsdk.version>
<webjars-hal-browser.version>
9f96c74
</webjars-hal-browser.version>
...
...
spring-boot/src/test/java/org/springframework/boot/context/embedded/tomcat/TomcatEmbeddedServletContainerFactoryTests.java
View file @
0ad4e0e7
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -247,14 +247,18 @@ public class TomcatEmbeddedServletContainerFactoryTests
TomcatEmbeddedServletContainerFactory
factory
=
getFactory
();
factory
.
setUriEncoding
(
Charset
.
forName
(
"US-ASCII"
));
Tomcat
tomcat
=
getTomcat
(
factory
);
assertThat
(
tomcat
.
getConnector
().
getURIEncoding
()).
isEqualTo
(
"US-ASCII"
);
Connector
connector
=
((
TomcatEmbeddedServletContainer
)
this
.
container
)
.
getServiceConnectors
().
get
(
tomcat
.
getService
())[
0
];
assertThat
(
connector
.
getURIEncoding
()).
isEqualTo
(
"US-ASCII"
);
}
@Test
public
void
defaultUriEncoding
()
throws
Exception
{
TomcatEmbeddedServletContainerFactory
factory
=
getFactory
();
Tomcat
tomcat
=
getTomcat
(
factory
);
assertThat
(
tomcat
.
getConnector
().
getURIEncoding
()).
isEqualTo
(
"UTF-8"
);
Connector
connector
=
((
TomcatEmbeddedServletContainer
)
this
.
container
)
.
getServiceConnectors
().
get
(
tomcat
.
getService
())[
0
];
assertThat
(
connector
.
getURIEncoding
()).
isEqualTo
(
"UTF-8"
);
}
@Test
...
...
@@ -263,13 +267,12 @@ public class TomcatEmbeddedServletContainerFactoryTests
ssl
.
setKeyStore
(
"test.jks"
);
ssl
.
setKeyStorePassword
(
"secret"
);
ssl
.
setCiphers
(
new
String
[]
{
"ALPHA"
,
"BRAVO"
,
"CHARLIE"
});
TomcatEmbeddedServletContainerFactory
factory
=
getFactory
();
factory
.
setSsl
(
ssl
);
Tomcat
tomcat
=
getTomcat
(
factory
);
Connector
connector
=
tomcat
.
getConnector
();
Connector
connector
=
((
TomcatEmbeddedServletContainer
)
this
.
container
)
.
getServiceConnectors
().
get
(
tomcat
.
getService
())[
0
];
SSLHostConfig
[]
sslHostConfigs
=
connector
.
getProtocolHandler
()
.
findSslHostConfigs
();
assertThat
(
sslHostConfigs
[
0
].
getCiphers
()).
isEqualTo
(
"ALPHA:BRAVO:CHARLIE"
);
...
...
@@ -309,9 +312,8 @@ public class TomcatEmbeddedServletContainerFactoryTests
this
.
container
=
factory
.
getEmbeddedServletContainer
(
sessionServletRegistration
());
Tomcat
tomcat
=
((
TomcatEmbeddedServletContainer
)
this
.
container
).
getTomcat
();
Connector
connector
=
tomcat
.
getConnector
();
this
.
container
.
start
();
Connector
connector
=
tomcat
.
getConnector
();
SSLHostConfig
sslHostConfig
=
connector
.
getProtocolHandler
()
.
findSslHostConfigs
()[
0
];
assertThat
(
sslHostConfig
.
getSslProtocol
()).
isEqualTo
(
"TLS"
);
...
...
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