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
dcb172fe
Commit
dcb172fe
authored
Jul 18, 2018
by
Madhura Bhave
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.0.x'
parents
9b6a0699
e907ae60
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
ApplicationContextServerWebExchangeMatcher.java
.../reactive/ApplicationContextServerWebExchangeMatcher.java
+1
-1
ApplicationContextServerWebExchangeMatcherTests.java
...tive/ApplicationContextServerWebExchangeMatcherTests.java
+1
-1
No files found.
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/security/reactive/ApplicationContextServerWebExchangeMatcher.java
View file @
dcb172fe
...
...
@@ -88,7 +88,7 @@ public abstract class ApplicationContextServerWebExchangeMatcher<C>
@SuppressWarnings
(
"unchecked"
)
private
Supplier
<
C
>
createContext
(
ServerWebExchange
exchange
)
{
ApplicationContext
context
=
exchange
.
getApplicationContext
();
Assert
.
state
(
context
!=
null
,
"No
Web
ApplicationContext found."
);
Assert
.
state
(
context
!=
null
,
"No ApplicationContext found."
);
if
(
this
.
contextClass
.
isInstance
(
context
))
{
return
()
->
(
C
)
context
;
}
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/security/reactive/ApplicationContextServerWebExchangeMatcherTests.java
View file @
dcb172fe
...
...
@@ -91,7 +91,7 @@ public class ApplicationContextServerWebExchangeMatcherTests {
MockServerWebExchange
exchange
=
MockServerWebExchange
.
from
(
MockServerHttpRequest
.
get
(
"/path"
).
build
());
this
.
thrown
.
expect
(
IllegalStateException
.
class
);
this
.
thrown
.
expectMessage
(
"No
Web
ApplicationContext found."
);
this
.
thrown
.
expectMessage
(
"No ApplicationContext found."
);
new
TestApplicationContextServerWebExchangeMatcher
<>(
ExistingBean
.
class
)
.
callMatchesAndReturnProvidedContext
(
exchange
);
}
...
...
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