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
9dccf5b8
Commit
9dccf5b8
authored
May 07, 2018
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
See gh-13078
parent
6e428100
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
13 deletions
+5
-13
MetricsAutoConfigurationWithLog4j2AndLogbackTests.java
...cs/MetricsAutoConfigurationWithLog4j2AndLogbackTests.java
+0
-7
spring-boot-features.adoc
...ing-boot-docs/src/main/asciidoc/spring-boot-features.adoc
+1
-1
BuildInfoIntegrationTests.java
...oot/gradle/tasks/buildinfo/BuildInfoIntegrationTests.java
+0
-1
ApplicationContextServerWebExchangeMatcherTests.java
...tive/ApplicationContextServerWebExchangeMatcherTests.java
+4
-4
No files found.
spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/metrics/MetricsAutoConfigurationWithLog4j2AndLogbackTests.java
View file @
9dccf5b8
...
...
@@ -20,10 +20,7 @@ import io.micrometer.core.instrument.binder.logging.LogbackMetrics;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.springframework.beans.factory.config.ConfigurableListableBeanFactory
;
import
org.springframework.boot.autoconfigure.AutoConfigurations
;
import
org.springframework.boot.autoconfigure.condition.ConditionEvaluationReport
;
import
org.springframework.boot.autoconfigure.logging.ConditionEvaluationReportMessage
;
import
org.springframework.boot.test.context.runner.ApplicationContextRunner
;
import
org.springframework.boot.testsupport.runner.classpath.ClassPathOverrides
;
import
org.springframework.boot.testsupport.runner.classpath.ModifiedClassPathRunner
;
...
...
@@ -47,10 +44,6 @@ public class MetricsAutoConfigurationWithLog4j2AndLogbackTests {
@Test
public
void
doesNotConfigureLogbackMetrics
()
{
this
.
contextRunner
.
run
((
context
)
->
{
System
.
out
.
println
(
new
ConditionEvaluationReportMessage
(
ConditionEvaluationReport
.
get
((
ConfigurableListableBeanFactory
)
context
.
getAutowireCapableBeanFactory
())));
assertThat
(
context
).
doesNotHaveBean
(
LogbackMetrics
.
class
);
});
}
...
...
spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
View file @
9dccf5b8
...
...
@@ -266,7 +266,7 @@ behalf. The algorithm used to determine a `WebEnvironmentType` is fairly simple:
* If Spring MVC is present, an `AnnotationConfigServletWebServerApplicationContext` is
used
* If Spring MVC is not present and Spring WebFlux is present, an
`AnnotationConfigReactiveWebApplicationContext` is used
`AnnotationConfigReactiveWeb
Server
ApplicationContext` is used
* Otherwise, `AnnotationConfigApplicationContext` is used
This means that if you are using Spring MVC and the new `WebClient` from Spring WebFlux in
...
...
spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/tasks/buildinfo/BuildInfoIntegrationTests.java
View file @
9dccf5b8
...
...
@@ -91,7 +91,6 @@ public class BuildInfoIntegrationTests {
.
getOutcome
()).
isEqualTo
(
TaskOutcome
.
SUCCESS
);
BuildResult
result
=
this
.
gradleBuild
.
build
(
"buildInfo"
,
"-PnullTime"
,
"-PprojectVersion=0.2.0"
);
System
.
out
.
println
(
result
.
getOutput
());
assertThat
(
result
.
task
(
":buildInfo"
).
getOutcome
()).
isEqualTo
(
TaskOutcome
.
SUCCESS
);
}
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/security/reactive/ApplicationContextServerWebExchangeMatcherTests.java
View file @
9dccf5b8
...
...
@@ -57,7 +57,7 @@ public class ApplicationContextServerWebExchangeMatcherTests {
@Test
public
void
matchesWhenContextClassIsApplicationContextShouldProvideContext
()
{
ServerWebExchange
exchange
=
create
HttpWebHandlerAdapter
();
ServerWebExchange
exchange
=
create
Exchange
();
StaticApplicationContext
context
=
(
StaticApplicationContext
)
exchange
.
getApplicationContext
();
assertThat
(
new
TestApplicationContextServerWebExchangeMatcher
<>(
...
...
@@ -67,7 +67,7 @@ public class ApplicationContextServerWebExchangeMatcherTests {
@Test
public
void
matchesWhenContextClassIsExistingBeanShouldProvideBean
()
{
ServerWebExchange
exchange
=
create
HttpWebHandlerAdapter
();
ServerWebExchange
exchange
=
create
Exchange
();
StaticApplicationContext
context
=
(
StaticApplicationContext
)
exchange
.
getApplicationContext
();
context
.
registerSingleton
(
"existingBean"
,
ExistingBean
.
class
);
...
...
@@ -79,7 +79,7 @@ public class ApplicationContextServerWebExchangeMatcherTests {
@Test
public
void
matchesWhenContextClassIsMissingBeanShouldProvideException
()
{
ServerWebExchange
exchange
=
create
HttpWebHandlerAdapter
();
ServerWebExchange
exchange
=
create
Exchange
();
Supplier
<
ExistingBean
>
supplier
=
new
TestApplicationContextServerWebExchangeMatcher
<>(
ExistingBean
.
class
).
callMatchesAndReturnProvidedContext
(
exchange
);
this
.
thrown
.
expect
(
NoSuchBeanDefinitionException
.
class
);
...
...
@@ -96,7 +96,7 @@ public class ApplicationContextServerWebExchangeMatcherTests {
.
callMatchesAndReturnProvidedContext
(
exchange
);
}
private
ServerWebExchange
create
HttpWebHandlerAdapter
()
{
private
ServerWebExchange
create
Exchange
()
{
StaticApplicationContext
context
=
new
StaticApplicationContext
();
TestHttpWebHandlerAdapter
adapter
=
new
TestHttpWebHandlerAdapter
(
mock
(
WebHandler
.
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