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
625bf935
Commit
625bf935
authored
Mar 21, 2018
by
Johnny Lim
Committed by
Stephane Nicoll
Mar 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
See gh-12584
parent
64a4f705
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
2 additions
and
8 deletions
+2
-8
TomcatMetricsAutoConfiguration.java
...re/metrics/web/tomcat/TomcatMetricsAutoConfiguration.java
+1
-2
HazelcastCacheMeterBinderProviderTests.java
...metrics/cache/HazelcastCacheMeterBinderProviderTests.java
+0
-3
DefaultErrorWebExceptionHandlerIntegrationTests.java
...rror/DefaultErrorWebExceptionHandlerIntegrationTests.java
+1
-1
ReproTests.java
...ot/src/test/java/org/springframework/boot/ReproTests.java
+0
-1
ConfigFileApplicationListenerYamlProfileNegationTests.java
...onfigFileApplicationListenerYamlProfileNegationTests.java
+0
-1
No files found.
spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/web/tomcat/TomcatMetricsAutoConfiguration.java
View file @
625bf935
...
@@ -30,7 +30,6 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplicat
...
@@ -30,7 +30,6 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplicat
import
org.springframework.boot.web.embedded.tomcat.TomcatReactiveWebServerFactory
;
import
org.springframework.boot.web.embedded.tomcat.TomcatReactiveWebServerFactory
;
import
org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory
;
import
org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory
;
import
org.springframework.boot.web.server.WebServerFactoryCustomizer
;
import
org.springframework.boot.web.server.WebServerFactoryCustomizer
;
import
org.springframework.context.ApplicationContext
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Bean
;
/**
/**
...
@@ -47,7 +46,7 @@ public class TomcatMetricsAutoConfiguration {
...
@@ -47,7 +46,7 @@ public class TomcatMetricsAutoConfiguration {
@Bean
@Bean
@ConditionalOnMissingBean
(
TomcatMetrics
.
class
)
@ConditionalOnMissingBean
(
TomcatMetrics
.
class
)
public
TomcatMetrics
tomcatMetrics
(
ApplicationContext
applicationContext
)
{
public
TomcatMetrics
tomcatMetrics
()
{
return
new
TomcatMetrics
(
this
.
context
==
null
?
null
:
this
.
context
.
getManager
(),
return
new
TomcatMetrics
(
this
.
context
==
null
?
null
:
this
.
context
.
getManager
(),
Collections
.
emptyList
());
Collections
.
emptyList
());
}
}
...
...
spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/cache/HazelcastCacheMeterBinderProviderTests.java
View file @
625bf935
...
@@ -23,8 +23,6 @@ import com.hazelcast.spring.cache.HazelcastCache;
...
@@ -23,8 +23,6 @@ import com.hazelcast.spring.cache.HazelcastCache;
import
io.micrometer.core.instrument.binder.MeterBinder
;
import
io.micrometer.core.instrument.binder.MeterBinder
;
import
io.micrometer.core.instrument.binder.cache.HazelcastCacheMetrics
;
import
io.micrometer.core.instrument.binder.cache.HazelcastCacheMetrics
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.mockito.junit.MockitoJUnitRunner
;
import
static
org
.
assertj
.
core
.
api
.
Assertions
.
assertThat
;
import
static
org
.
assertj
.
core
.
api
.
Assertions
.
assertThat
;
import
static
org
.
mockito
.
BDDMockito
.
given
;
import
static
org
.
mockito
.
BDDMockito
.
given
;
...
@@ -35,7 +33,6 @@ import static org.mockito.Mockito.mock;
...
@@ -35,7 +33,6 @@ import static org.mockito.Mockito.mock;
*
*
* @author Stephane Nicoll
* @author Stephane Nicoll
*/
*/
@RunWith
(
MockitoJUnitRunner
.
class
)
public
class
HazelcastCacheMeterBinderProviderTests
{
public
class
HazelcastCacheMeterBinderProviderTests
{
@SuppressWarnings
(
"unchecked"
)
@SuppressWarnings
(
"unchecked"
)
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/reactive/error/DefaultErrorWebExceptionHandlerIntegrationTests.java
View file @
625bf935
...
@@ -269,7 +269,7 @@ public class DefaultErrorWebExceptionHandlerIntegrationTests {
...
@@ -269,7 +269,7 @@ public class DefaultErrorWebExceptionHandlerIntegrationTests {
}
}
@Test
@Test
public
void
whi
l
elabelDisabled
()
{
public
void
whi
t
elabelDisabled
()
{
this
.
contextRunner
.
withPropertyValues
(
"server.error.whitelabel.enabled=false"
,
this
.
contextRunner
.
withPropertyValues
(
"server.error.whitelabel.enabled=false"
,
"spring.mustache.prefix=classpath:/unknown/"
).
run
((
context
)
->
{
"spring.mustache.prefix=classpath:/unknown/"
).
run
((
context
)
->
{
WebTestClient
client
=
WebTestClient
.
bindToApplicationContext
(
context
)
WebTestClient
client
=
WebTestClient
.
bindToApplicationContext
(
context
)
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/ReproTests.java
View file @
625bf935
...
@@ -170,7 +170,6 @@ public class ReproTests {
...
@@ -170,7 +170,6 @@ public class ReproTests {
.
isEqualTo
(
expectedActiveProfiles
);
.
isEqualTo
(
expectedActiveProfiles
);
assertThat
(
context
.
getEnvironment
().
getProperty
(
"version"
)).
as
(
"version mismatch"
)
assertThat
(
context
.
getEnvironment
().
getProperty
(
"version"
)).
as
(
"version mismatch"
)
.
isEqualTo
(
expectedVersion
);
.
isEqualTo
(
expectedVersion
);
context
.
close
();
}
}
@Configuration
@Configuration
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigFileApplicationListenerYamlProfileNegationTests.java
View file @
625bf935
...
@@ -136,7 +136,6 @@ public class ConfigFileApplicationListenerYamlProfileNegationTests {
...
@@ -136,7 +136,6 @@ public class ConfigFileApplicationListenerYamlProfileNegationTests {
.
isEqualTo
(
expectedActiveProfiles
);
.
isEqualTo
(
expectedActiveProfiles
);
assertThat
(
context
.
getEnvironment
().
getProperty
(
"version"
)).
as
(
"version mismatch"
)
assertThat
(
context
.
getEnvironment
().
getProperty
(
"version"
)).
as
(
"version mismatch"
)
.
isEqualTo
(
expectedVersion
);
.
isEqualTo
(
expectedVersion
);
context
.
close
();
}
}
@Configuration
@Configuration
...
...
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