Commit 78a428ec by Dave Syer

Fix names and ports

parent 4ab3db9c
......@@ -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 FilterInitializer implements ServletContextListener {
private static final Logger LOGGER = LoggerFactory.getLogger(FilterIntializer.class);
private static final Logger LOGGER = LoggerFactory.getLogger(FilterInitializer.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 initializer context listener");
//FIXME: mocks monitoring infrastructure as we don't need it for this simple app
MonitoringHelper.initMocks();
......
......@@ -57,8 +57,8 @@ public class ZuulProxyConfiguration {
}
@Bean
FilterIntializer filterIntializer() {
return new FilterIntializer();
FilterInitializer zuulFilterInitializer() {
return new FilterInitializer();
}
// pre filters
......
......@@ -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
......
......@@ -2,15 +2,17 @@ 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
public void contextLoads() {
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment