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
78a428ec
Commit
78a428ec
authored
Aug 23, 2014
by
Dave Syer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix names and ports
parent
4ab3db9c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
7 deletions
+11
-7
FilterInitializer.java
...ingframework/platform/netflix/zuul/FilterInitializer.java
+3
-3
ZuulProxyConfiguration.java
...amework/platform/netflix/zuul/ZuulProxyConfiguration.java
+2
-2
ApplicationTests.java
...work/platform/netflix/eureka/sample/ApplicationTests.java
+3
-1
ApplicationTests.java
...mework/platform/netflix/zuul/sample/ApplicationTests.java
+3
-1
No files found.
spring-platform-netflix-core/src/main/java/org/springframework/platform/netflix/zuul/FilterIntializer.java
→
spring-platform-netflix-core/src/main/java/org/springframework/platform/netflix/zuul/FilterIn
i
tializer.java
View file @
78a428ec
...
...
@@ -19,9 +19,9 @@ import com.netflix.zuul.monitoring.MonitoringHelper;
* Time: 9:23 PM
* TODO: .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS)
*/
public
class
FilterIntializer
implements
ServletContextListener
{
public
class
FilterIn
i
tializer
implements
ServletContextListener
{
private
static
final
Logger
LOGGER
=
LoggerFactory
.
getLogger
(
FilterIntializer
.
class
);
private
static
final
Logger
LOGGER
=
LoggerFactory
.
getLogger
(
FilterIn
i
tializer
.
class
);
@Autowired
private
Map
<
String
,
ZuulFilter
>
filters
;
...
...
@@ -29,7 +29,7 @@ public class FilterIntializer implements ServletContextListener {
@Override
public
void
contextInitialized
(
ServletContextEvent
sce
)
{
LOGGER
.
info
(
"Starting filter initialzer context listener"
);
LOGGER
.
info
(
"Starting filter initial
i
zer context listener"
);
//FIXME: mocks monitoring infrastructure as we don't need it for this simple app
MonitoringHelper
.
initMocks
();
...
...
spring-platform-netflix-core/src/main/java/org/springframework/platform/netflix/zuul/ZuulProxyConfiguration.java
View file @
78a428ec
...
...
@@ -57,8 +57,8 @@ public class ZuulProxyConfiguration {
}
@Bean
FilterIn
tializer
filterIn
tializer
()
{
return
new
FilterIntializer
();
FilterIn
itializer
zuulFilterIni
tializer
()
{
return
new
FilterIn
i
tializer
();
}
// pre filters
...
...
spring-platform-netflix-core/src/test/java/org/springframework/platform/netflix/eureka/sample/ApplicationTests.java
View file @
78a428ec
...
...
@@ -2,13 +2,15 @@ package org.springframework.platform.netflix.eureka.sample;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.springframework.
test.context.web.WebAppConfiguration
;
import
org.springframework.
boot.test.IntegrationTest
;
import
org.springframework.boot.test.SpringApplicationConfiguration
;
import
org.springframework.test.context.junit4.SpringJUnit4ClassRunner
;
import
org.springframework.test.context.web.WebAppConfiguration
;
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
@SpringApplicationConfiguration
(
classes
=
Application
.
class
)
@WebAppConfiguration
@IntegrationTest
(
"server.port=0"
)
public
class
ApplicationTests
{
@Test
...
...
spring-platform-netflix-core/src/test/java/org/springframework/platform/netflix/zuul/sample/ApplicationTests.java
View file @
78a428ec
...
...
@@ -2,13 +2,15 @@ package org.springframework.platform.netflix.zuul.sample;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.springframework.
test.context.web.WebAppConfiguration
;
import
org.springframework.
boot.test.IntegrationTest
;
import
org.springframework.boot.test.SpringApplicationConfiguration
;
import
org.springframework.test.context.junit4.SpringJUnit4ClassRunner
;
import
org.springframework.test.context.web.WebAppConfiguration
;
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
@SpringApplicationConfiguration
(
classes
=
Application
.
class
)
@WebAppConfiguration
@IntegrationTest
(
"server.port=0"
)
public
class
ApplicationTests
{
@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