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
4ecc7b92
Commit
4ecc7b92
authored
Jan 29, 2018
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
f8b4018f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
TomcatEmbeddedServletContainerFactoryTests.java
...ed/tomcat/TomcatEmbeddedServletContainerFactoryTests.java
+3
-3
No files found.
spring-boot/src/test/java/org/springframework/boot/context/embedded/tomcat/TomcatEmbeddedServletContainerFactoryTests.java
View file @
4ecc7b92
...
@@ -68,9 +68,9 @@ import org.springframework.util.SocketUtils;
...
@@ -68,9 +68,9 @@ import org.springframework.util.SocketUtils;
import
static
org
.
assertj
.
core
.
api
.
Assertions
.
assertThat
;
import
static
org
.
assertj
.
core
.
api
.
Assertions
.
assertThat
;
import
static
org
.
junit
.
Assert
.
fail
;
import
static
org
.
junit
.
Assert
.
fail
;
import
static
org
.
mockito
.
BDDMockito
.
given
;
import
static
org
.
mockito
.
BDDMockito
.
given
;
import
static
org
.
mockito
.
BDDMockito
.
willAnswer
;
import
static
org
.
mockito
.
Matchers
.
any
;
import
static
org
.
mockito
.
Matchers
.
any
;
import
static
org
.
mockito
.
Matchers
.
anyObject
;
import
static
org
.
mockito
.
Matchers
.
anyObject
;
import
static
org
.
mockito
.
Mockito
.
doAnswer
;
import
static
org
.
mockito
.
Mockito
.
inOrder
;
import
static
org
.
mockito
.
Mockito
.
inOrder
;
import
static
org
.
mockito
.
Mockito
.
mock
;
import
static
org
.
mockito
.
Mockito
.
mock
;
import
static
org
.
mockito
.
Mockito
.
verify
;
import
static
org
.
mockito
.
Mockito
.
verify
;
...
@@ -153,7 +153,7 @@ public class TomcatEmbeddedServletContainerFactoryTests
...
@@ -153,7 +153,7 @@ public class TomcatEmbeddedServletContainerFactoryTests
public
void
contextIsAddedToHostBeforeCustomizersAreCalled
()
throws
Exception
{
public
void
contextIsAddedToHostBeforeCustomizersAreCalled
()
throws
Exception
{
TomcatEmbeddedServletContainerFactory
factory
=
getFactory
();
TomcatEmbeddedServletContainerFactory
factory
=
getFactory
();
TomcatContextCustomizer
customizer
=
mock
(
TomcatContextCustomizer
.
class
);
TomcatContextCustomizer
customizer
=
mock
(
TomcatContextCustomizer
.
class
);
do
Answer
(
new
Answer
<
Void
>()
{
will
Answer
(
new
Answer
<
Void
>()
{
@Override
@Override
public
Void
answer
(
InvocationOnMock
invocation
)
throws
Throwable
{
public
Void
answer
(
InvocationOnMock
invocation
)
throws
Throwable
{
...
@@ -162,7 +162,7 @@ public class TomcatEmbeddedServletContainerFactoryTests
...
@@ -162,7 +162,7 @@ public class TomcatEmbeddedServletContainerFactoryTests
return
null
;
return
null
;
}
}
}).
wh
en
(
customizer
).
customize
(
any
(
Context
.
class
));
}).
giv
en
(
customizer
).
customize
(
any
(
Context
.
class
));
factory
.
addContextCustomizers
(
customizer
);
factory
.
addContextCustomizers
(
customizer
);
this
.
container
=
factory
.
getEmbeddedServletContainer
();
this
.
container
=
factory
.
getEmbeddedServletContainer
();
verify
(
customizer
).
customize
(
any
(
Context
.
class
));
verify
(
customizer
).
customize
(
any
(
Context
.
class
));
...
...
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