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
c0e3ae90
Commit
c0e3ae90
authored
Dec 07, 2017
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
996a7cf0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
8 deletions
+6
-8
CloudFoundryWebAnnotationEndpointDiscovererTests.java
...dry/CloudFoundryWebAnnotationEndpointDiscovererTests.java
+1
-1
ReactiveCloudFoundryActuatorAutoConfigurationTests.java
...e/ReactiveCloudFoundryActuatorAutoConfigurationTests.java
+2
-3
CloudFoundryActuatorAutoConfigurationTests.java
...y/servlet/CloudFoundryActuatorAutoConfigurationTests.java
+2
-3
FreeMarkerAutoConfigurationReactiveIntegrationTests.java
.../FreeMarkerAutoConfigurationReactiveIntegrationTests.java
+1
-1
No files found.
spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/cloudfoundry/CloudFoundryWebAnnotationEndpointDiscovererTests.java
View file @
c0e3ae90
...
@@ -49,7 +49,7 @@ public class CloudFoundryWebAnnotationEndpointDiscovererTests {
...
@@ -49,7 +49,7 @@ public class CloudFoundryWebAnnotationEndpointDiscovererTests {
@Test
@Test
public
void
discovererShouldAddSuppliedExtensionForHealthEndpoint
()
throws
Exception
{
public
void
discovererShouldAddSuppliedExtensionForHealthEndpoint
()
throws
Exception
{
load
(
TestConfiguration
.
class
,
endpointDiscoverer
->
{
load
(
TestConfiguration
.
class
,
(
endpointDiscoverer
)
->
{
Collection
<
EndpointInfo
<
WebOperation
>>
endpoints
=
endpointDiscoverer
Collection
<
EndpointInfo
<
WebOperation
>>
endpoints
=
endpointDiscoverer
.
discoverEndpoints
();
.
discoverEndpoints
();
assertThat
(
endpoints
.
size
()).
isEqualTo
(
2
);
assertThat
(
endpoints
.
size
()).
isEqualTo
(
2
);
...
...
spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/cloudfoundry/reactive/ReactiveCloudFoundryActuatorAutoConfigurationTests.java
View file @
c0e3ae90
...
@@ -235,9 +235,8 @@ public class ReactiveCloudFoundryActuatorAutoConfigurationTests {
...
@@ -235,9 +235,8 @@ public class ReactiveCloudFoundryActuatorAutoConfigurationTests {
this
.
context
.
refresh
();
this
.
context
.
refresh
();
Collection
<
EndpointInfo
<
WebOperation
>>
endpoints
=
getHandlerMapping
()
Collection
<
EndpointInfo
<
WebOperation
>>
endpoints
=
getHandlerMapping
()
.
getEndpoints
();
.
getEndpoints
();
EndpointInfo
endpointInfo
=
(
EndpointInfo
)
(
endpoints
.
toArray
()[
0
]);
EndpointInfo
<
WebOperation
>
endpointInfo
=
endpoints
.
iterator
().
next
();
WebOperation
webOperation
=
(
WebOperation
)
endpointInfo
.
getOperations
()
WebOperation
webOperation
=
endpointInfo
.
getOperations
().
iterator
().
next
();
.
toArray
()[
0
];
ReflectiveOperationInvoker
invoker
=
(
ReflectiveOperationInvoker
)
webOperation
ReflectiveOperationInvoker
invoker
=
(
ReflectiveOperationInvoker
)
webOperation
.
getInvoker
();
.
getInvoker
();
assertThat
(
ReflectionTestUtils
.
getField
(
invoker
,
"target"
))
assertThat
(
ReflectionTestUtils
.
getField
(
invoker
,
"target"
))
...
...
spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/cloudfoundry/servlet/CloudFoundryActuatorAutoConfigurationTests.java
View file @
c0e3ae90
...
@@ -259,9 +259,8 @@ public class CloudFoundryActuatorAutoConfigurationTests {
...
@@ -259,9 +259,8 @@ public class CloudFoundryActuatorAutoConfigurationTests {
.
getBean
(
"cloudFoundryWebEndpointServletHandlerMapping"
,
.
getBean
(
"cloudFoundryWebEndpointServletHandlerMapping"
,
CloudFoundryWebEndpointServletHandlerMapping
.
class
)
CloudFoundryWebEndpointServletHandlerMapping
.
class
)
.
getEndpoints
();
.
getEndpoints
();
EndpointInfo
endpointInfo
=
(
EndpointInfo
)
(
endpoints
.
toArray
()[
0
]);
EndpointInfo
<
WebOperation
>
endpointInfo
=
endpoints
.
iterator
().
next
();
WebOperation
webOperation
=
(
WebOperation
)
endpointInfo
.
getOperations
()
WebOperation
webOperation
=
endpointInfo
.
getOperations
().
iterator
().
next
();
.
toArray
()[
0
];
ReflectiveOperationInvoker
invoker
=
(
ReflectiveOperationInvoker
)
webOperation
ReflectiveOperationInvoker
invoker
=
(
ReflectiveOperationInvoker
)
webOperation
.
getInvoker
();
.
getInvoker
();
assertThat
(
ReflectionTestUtils
.
getField
(
invoker
,
"target"
))
assertThat
(
ReflectionTestUtils
.
getField
(
invoker
,
"target"
))
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/freemarker/FreeMarkerAutoConfigurationReactiveIntegrationTests.java
View file @
c0e3ae90
...
@@ -130,7 +130,7 @@ public class FreeMarkerAutoConfigurationReactiveIntegrationTests {
...
@@ -130,7 +130,7 @@ public class FreeMarkerAutoConfigurationReactiveIntegrationTests {
Mono
<
View
>
view
=
resolver
.
resolveViewName
(
viewName
,
Locale
.
UK
);
Mono
<
View
>
view
=
resolver
.
resolveViewName
(
viewName
,
Locale
.
UK
);
MockServerWebExchange
exchange
=
MockServerWebExchange
MockServerWebExchange
exchange
=
MockServerWebExchange
.
from
(
MockServerHttpRequest
.
get
(
"/path"
));
.
from
(
MockServerHttpRequest
.
get
(
"/path"
));
view
.
flatMap
(
v
->
v
.
render
(
null
,
MediaType
.
TEXT_HTML
,
exchange
)).
block
();
view
.
flatMap
(
(
v
)
->
v
.
render
(
null
,
MediaType
.
TEXT_HTML
,
exchange
)).
block
();
return
exchange
;
return
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