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
56711d67
Commit
56711d67
authored
Apr 22, 2020
by
Phillip Webb
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.2.x'
Closes gh-21083
parents
b8fbe395
102729b5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
14 deletions
+4
-14
ReactiveCloudFoundrySecurityServiceTests.java
...ry/reactive/ReactiveCloudFoundrySecurityServiceTests.java
+0
-2
InfoEndpointAutoConfigurationTests.java
...utoconfigure/info/InfoEndpointAutoConfigurationTests.java
+0
-1
JmxEndpointDiscovererTests.java
...e/endpoint/jmx/annotation/JmxEndpointDiscovererTests.java
+4
-10
HikariDataSourceConfigurationTests.java
...utoconfigure/jdbc/HikariDataSourceConfigurationTests.java
+0
-1
No files found.
spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/cloudfoundry/reactive/ReactiveCloudFoundrySecurityServiceTests.java
View file @
56711d67
...
@@ -204,8 +204,6 @@ class ReactiveCloudFoundrySecurityServiceTests {
...
@@ -204,8 +204,6 @@ class ReactiveCloudFoundrySecurityServiceTests {
});
});
StepVerifier
.
create
(
this
.
securityService
.
getUaaUrl
())
StepVerifier
.
create
(
this
.
securityService
.
getUaaUrl
())
.
consumeNextWith
((
uaaUrl
)
->
assertThat
(
uaaUrl
).
isEqualTo
(
UAA_URL
)).
expectComplete
().
verify
();
.
consumeNextWith
((
uaaUrl
)
->
assertThat
(
uaaUrl
).
isEqualTo
(
UAA_URL
)).
expectComplete
().
verify
();
// this.securityService.getUaaUrl().block(); //FIXME subscribe again to check that
// it isn't called again
expectRequest
((
request
)
->
assertThat
(
request
.
getPath
()).
isEqualTo
(
CLOUD_CONTROLLER
+
"/info"
));
expectRequest
((
request
)
->
assertThat
(
request
.
getPath
()).
isEqualTo
(
CLOUD_CONTROLLER
+
"/info"
));
expectRequestCount
(
1
);
expectRequestCount
(
1
);
}
}
...
...
spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/info/InfoEndpointAutoConfigurationTests.java
View file @
56711d67
...
@@ -42,7 +42,6 @@ class InfoEndpointAutoConfigurationTests {
...
@@ -42,7 +42,6 @@ class InfoEndpointAutoConfigurationTests {
@Test
@Test
void
runShouldHaveEndpointBeanEvenIfDefaultIsDisabled
()
{
void
runShouldHaveEndpointBeanEvenIfDefaultIsDisabled
()
{
// FIXME
this
.
contextRunner
.
withPropertyValues
(
"management.endpoint.default.enabled:false"
)
this
.
contextRunner
.
withPropertyValues
(
"management.endpoint.default.enabled:false"
)
.
run
((
context
)
->
assertThat
(
context
).
hasSingleBean
(
InfoEndpoint
.
class
));
.
run
((
context
)
->
assertThat
(
context
).
hasSingleBean
(
InfoEndpoint
.
class
));
}
}
...
...
spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/jmx/annotation/JmxEndpointDiscovererTests.java
View file @
56711d67
...
@@ -79,18 +79,18 @@ class JmxEndpointDiscovererTests {
...
@@ -79,18 +79,18 @@ class JmxEndpointDiscovererTests {
assertThat
(
getSomething
.
getDescription
()).
isEqualTo
(
"Invoke getSomething for endpoint test"
);
assertThat
(
getSomething
.
getDescription
()).
isEqualTo
(
"Invoke getSomething for endpoint test"
);
assertThat
(
getSomething
.
getOutputType
()).
isEqualTo
(
String
.
class
);
assertThat
(
getSomething
.
getOutputType
()).
isEqualTo
(
String
.
class
);
assertThat
(
getSomething
.
getParameters
()).
hasSize
(
1
);
assertThat
(
getSomething
.
getParameters
()).
hasSize
(
1
);
hasDefaultParameter
(
getSomething
,
0
,
String
.
class
);
assertThat
(
getSomething
.
getParameters
().
get
(
0
).
getType
()).
isEqualTo
(
String
.
class
);
JmxOperation
update
=
operationByName
.
get
(
"update"
);
JmxOperation
update
=
operationByName
.
get
(
"update"
);
assertThat
(
update
.
getDescription
()).
isEqualTo
(
"Invoke update for endpoint test"
);
assertThat
(
update
.
getDescription
()).
isEqualTo
(
"Invoke update for endpoint test"
);
assertThat
(
update
.
getOutputType
()).
isEqualTo
(
Void
.
TYPE
);
assertThat
(
update
.
getOutputType
()).
isEqualTo
(
Void
.
TYPE
);
assertThat
(
update
.
getParameters
()).
hasSize
(
2
);
assertThat
(
update
.
getParameters
()).
hasSize
(
2
);
hasDefaultParameter
(
update
,
0
,
String
.
class
);
assertThat
(
update
.
getParameters
().
get
(
0
).
getType
()).
isEqualTo
(
String
.
class
);
hasDefaultParameter
(
update
,
1
,
String
.
class
);
assertThat
(
update
.
getParameters
().
get
(
1
).
getType
()).
isEqualTo
(
String
.
class
);
JmxOperation
deleteSomething
=
operationByName
.
get
(
"deleteSomething"
);
JmxOperation
deleteSomething
=
operationByName
.
get
(
"deleteSomething"
);
assertThat
(
deleteSomething
.
getDescription
()).
isEqualTo
(
"Invoke deleteSomething for endpoint test"
);
assertThat
(
deleteSomething
.
getDescription
()).
isEqualTo
(
"Invoke deleteSomething for endpoint test"
);
assertThat
(
deleteSomething
.
getOutputType
()).
isEqualTo
(
Void
.
TYPE
);
assertThat
(
deleteSomething
.
getOutputType
()).
isEqualTo
(
Void
.
TYPE
);
assertThat
(
deleteSomething
.
getParameters
()).
hasSize
(
1
);
assertThat
(
deleteSomething
.
getParameters
()).
hasSize
(
1
);
hasDefaultParameter
(
deleteSomething
,
0
,
String
.
class
);
assertThat
(
deleteSomething
.
getParameters
().
get
(
0
).
getType
()).
isEqualTo
(
String
.
class
);
});
});
}
}
...
@@ -239,12 +239,6 @@ class JmxEndpointDiscovererTests {
...
@@ -239,12 +239,6 @@ class JmxEndpointDiscovererTests {
assertThat
(
parameter
.
getDescription
()).
isEqualTo
(
description
);
assertThat
(
parameter
.
getDescription
()).
isEqualTo
(
description
);
}
}
// FIXME rename
private
void
hasDefaultParameter
(
JmxOperation
operation
,
int
index
,
Class
<?>
type
)
{
JmxOperationParameter
parameter
=
operation
.
getParameters
().
get
(
index
);
assertThat
(
parameter
.
getType
()).
isEqualTo
(
type
);
}
private
Map
<
EndpointId
,
ExposableJmxEndpoint
>
discover
(
JmxEndpointDiscoverer
discoverer
)
{
private
Map
<
EndpointId
,
ExposableJmxEndpoint
>
discover
(
JmxEndpointDiscoverer
discoverer
)
{
Map
<
EndpointId
,
ExposableJmxEndpoint
>
byId
=
new
HashMap
<>();
Map
<
EndpointId
,
ExposableJmxEndpoint
>
byId
=
new
HashMap
<>();
discoverer
.
getEndpoints
().
forEach
((
endpoint
)
->
byId
.
put
(
endpoint
.
getEndpointId
(),
endpoint
));
discoverer
.
getEndpoints
().
forEach
((
endpoint
)
->
byId
.
put
(
endpoint
.
getEndpointId
(),
endpoint
));
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jdbc/HikariDataSourceConfigurationTests.java
View file @
56711d67
...
@@ -55,7 +55,6 @@ class HikariDataSourceConfigurationTests {
...
@@ -55,7 +55,6 @@ class HikariDataSourceConfigurationTests {
assertThat
(
ds
.
getJdbcUrl
()).
isEqualTo
(
"jdbc:foo//bar/spam"
);
assertThat
(
ds
.
getJdbcUrl
()).
isEqualTo
(
"jdbc:foo//bar/spam"
);
assertThat
(
ds
.
getMaxLifetime
()).
isEqualTo
(
1234
);
assertThat
(
ds
.
getMaxLifetime
()).
isEqualTo
(
1234
);
});
});
// TODO: test JDBC4 isValid()
}
}
@Test
@Test
...
...
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