Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-cloud-netflix
Project
Overview
Details
Activity
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
openSource
spring-cloud-netflix
Commits
a99e23f9
Commit
a99e23f9
authored
Dec 12, 2016
by
Dave Syer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update to Boot 1.5.0
parent
8b089222
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
16 deletions
+18
-16
pom.xml
pom.xml
+1
-1
pom.xml
spring-cloud-netflix-dependencies/pom.xml
+1
-1
ApplicationContextTests.java
.../cloud/netflix/eureka/server/ApplicationContextTests.java
+2
-1
ApplicationServletPathTests.java
...ud/netflix/eureka/server/ApplicationServletPathTests.java
+4
-3
ApplicationTests.java
...amework/cloud/netflix/eureka/server/ApplicationTests.java
+3
-3
SpectatorMetricsHandlerInterceptorIntegrationTests.java
...r/SpectatorMetricsHandlerInterceptorIntegrationTests.java
+7
-7
No files found.
pom.xml
View file @
a99e23f9
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<parent>
<parent>
<groupId>
org.springframework.cloud
</groupId>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-build
</artifactId>
<artifactId>
spring-cloud-build
</artifactId>
<version>
1.
2.2
.BUILD-SNAPSHOT
</version>
<version>
1.
3.0
.BUILD-SNAPSHOT
</version>
<relativePath
/>
<relativePath
/>
</parent>
</parent>
<scm>
<scm>
...
...
spring-cloud-netflix-dependencies/pom.xml
View file @
a99e23f9
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
spring-cloud-dependencies-parent
</artifactId>
<artifactId>
spring-cloud-dependencies-parent
</artifactId>
<groupId>
org.springframework.cloud
</groupId>
<groupId>
org.springframework.cloud
</groupId>
<version>
1.
2.2
.BUILD-SNAPSHOT
</version>
<version>
1.
3.0
.BUILD-SNAPSHOT
</version>
<relativePath/>
<relativePath/>
</parent>
</parent>
<artifactId>
spring-cloud-netflix-dependencies
</artifactId>
<artifactId>
spring-cloud-netflix-dependencies
</artifactId>
...
...
spring-cloud-netflix-eureka-server/src/test/java/org/springframework/cloud/netflix/eureka/server/ApplicationContextTests.java
View file @
a99e23f9
...
@@ -42,7 +42,8 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
...
@@ -42,7 +42,8 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
@SpringBootTest
(
classes
=
Application
.
class
,
webEnvironment
=
WebEnvironment
.
RANDOM_PORT
,
value
=
{
@SpringBootTest
(
classes
=
Application
.
class
,
webEnvironment
=
WebEnvironment
.
RANDOM_PORT
,
value
=
{
"spring.application.name=eureka"
,
"server.contextPath=/context"
})
"spring.application.name=eureka"
,
"server.contextPath=/context"
,
"management.security.enabled=false"
})
public
class
ApplicationContextTests
{
public
class
ApplicationContextTests
{
@Value
(
"${local.server.port}"
)
@Value
(
"${local.server.port}"
)
...
...
spring-cloud-netflix-eureka-server/src/test/java/org/springframework/cloud/netflix/eureka/server/ApplicationServletPathTests.java
View file @
a99e23f9
...
@@ -24,9 +24,9 @@ import java.util.Map;
...
@@ -24,9 +24,9 @@ import java.util.Map;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.builder.SpringApplicationBuilder
;
import
org.springframework.boot.builder.SpringApplicationBuilder
;
import
org.springframework.boot.context.embedded.LocalServerPort
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.boot.test.context.SpringBootTest.WebEnvironment
;
import
org.springframework.boot.test.context.SpringBootTest.WebEnvironment
;
import
org.springframework.boot.test.web.client.TestRestTemplate
;
import
org.springframework.boot.test.web.client.TestRestTemplate
;
...
@@ -42,10 +42,11 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
...
@@ -42,10 +42,11 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
@SpringBootTest
(
classes
=
Application
.
class
,
webEnvironment
=
WebEnvironment
.
RANDOM_PORT
,
value
=
{
@SpringBootTest
(
classes
=
Application
.
class
,
webEnvironment
=
WebEnvironment
.
RANDOM_PORT
,
value
=
{
"spring.application.name=eureka"
,
"server.servletPath=/servlet"
})
"spring.application.name=eureka"
,
"server.servletPath=/servlet"
,
"management.security.enabled=false"
})
public
class
ApplicationServletPathTests
{
public
class
ApplicationServletPathTests
{
@
Value
(
"${local.server.port}"
)
@
LocalServerPort
private
int
port
=
0
;
private
int
port
=
0
;
@Configuration
@Configuration
...
...
spring-cloud-netflix-eureka-server/src/test/java/org/springframework/cloud/netflix/eureka/server/ApplicationTests.java
View file @
a99e23f9
...
@@ -30,9 +30,9 @@ import java.util.Map;
...
@@ -30,9 +30,9 @@ import java.util.Map;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.builder.SpringApplicationBuilder
;
import
org.springframework.boot.builder.SpringApplicationBuilder
;
import
org.springframework.boot.context.embedded.LocalServerPort
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.boot.test.context.SpringBootTest.WebEnvironment
;
import
org.springframework.boot.test.context.SpringBootTest.WebEnvironment
;
import
org.springframework.boot.test.web.client.TestRestTemplate
;
import
org.springframework.boot.test.web.client.TestRestTemplate
;
...
@@ -52,10 +52,10 @@ import com.netflix.eureka.resources.ServerCodecs;
...
@@ -52,10 +52,10 @@ import com.netflix.eureka.resources.ServerCodecs;
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
@SpringBootTest
(
classes
=
Application
.
class
,
webEnvironment
=
WebEnvironment
.
RANDOM_PORT
,
value
=
{
@SpringBootTest
(
classes
=
Application
.
class
,
webEnvironment
=
WebEnvironment
.
RANDOM_PORT
,
value
=
{
"spring.jmx.enabled=true"
})
"spring.jmx.enabled=true"
,
"management.security.enabled=false"
})
public
class
ApplicationTests
{
public
class
ApplicationTests
{
@
Value
(
"${local.server.port}"
)
@
LocalServerPort
private
int
port
=
0
;
private
int
port
=
0
;
@Autowired
@Autowired
...
...
spring-cloud-netflix-spectator/src/test/java/org/springframework/cloud/netflix/metrics/spectator/SpectatorMetricsHandlerInterceptorIntegrationTests.java
View file @
a99e23f9
...
@@ -13,6 +13,10 @@
...
@@ -13,6 +13,10 @@
package
org
.
springframework
.
cloud
.
netflix
.
metrics
.
spectator
;
package
org
.
springframework
.
cloud
.
netflix
.
metrics
.
spectator
;
import
static
org
.
junit
.
Assert
.
assertFalse
;
import
static
org
.
springframework
.
test
.
web
.
servlet
.
request
.
MockMvcRequestBuilders
.
get
;
import
static
org
.
springframework
.
test
.
web
.
servlet
.
result
.
MockMvcResultMatchers
.
status
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
org.junit.Assert
;
import
org.junit.Assert
;
...
@@ -20,8 +24,8 @@ import org.junit.Before;
...
@@ -20,8 +24,8 @@ import org.junit.Before;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.autoconfigure.ImportAutoConfiguration
;
import
org.springframework.boot.autoconfigure.PropertyPlaceholderAutoConfiguration
;
import
org.springframework.boot.autoconfigure.PropertyPlaceholderAutoConfiguration
;
import
org.springframework.boot.autoconfigure.test.ImportAutoConfiguration
;
import
org.springframework.cloud.netflix.metrics.MetricsHandlerInterceptor
;
import
org.springframework.cloud.netflix.metrics.MetricsHandlerInterceptor
;
import
org.springframework.cloud.netflix.metrics.servo.ServoMonitorCache
;
import
org.springframework.cloud.netflix.metrics.servo.ServoMonitorCache
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Bean
;
...
@@ -48,10 +52,6 @@ import com.netflix.servo.MonitorRegistry;
...
@@ -48,10 +52,6 @@ import com.netflix.servo.MonitorRegistry;
import
com.netflix.servo.monitor.BasicTimer
;
import
com.netflix.servo.monitor.BasicTimer
;
import
com.netflix.servo.monitor.MonitorConfig
;
import
com.netflix.servo.monitor.MonitorConfig
;
import
static
org
.
junit
.
Assert
.
assertFalse
;
import
static
org
.
springframework
.
test
.
web
.
servlet
.
request
.
MockMvcRequestBuilders
.
get
;
import
static
org
.
springframework
.
test
.
web
.
servlet
.
result
.
MockMvcResultMatchers
.
status
;
/**
/**
* @author Jon Schneider
* @author Jon Schneider
*/
*/
...
@@ -74,8 +74,8 @@ public class SpectatorMetricsHandlerInterceptorIntegrationTests {
...
@@ -74,8 +74,8 @@ public class SpectatorMetricsHandlerInterceptorIntegrationTests {
@Test
@Test
public
void
autoConfigurationWiresTheMetricsInterceptor
()
{
public
void
autoConfigurationWiresTheMetricsInterceptor
()
{
assertFalse
(
webAppContext
.
getBeansOfType
(
MetricsHandlerInterceptor
.
class
)
assertFalse
(
.
isEmpty
());
webAppContext
.
getBeansOfType
(
MetricsHandlerInterceptor
.
class
)
.
isEmpty
());
}
}
@Before
@Before
...
...
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