Change classes to use PortMapperImpl and PortResolverImpl by default.

This commit is contained in:
Ben Alex
2004-04-28 00:10:56 +00:00
parent c641c445a0
commit b61c05ff89
8 changed files with 21 additions and 13 deletions

View File

@@ -233,6 +233,7 @@ public class SecurityEnforcementFilterTests extends TestCase {
false, false));
filter.setAuthenticationEntryPoint(new MockAuthenticationEntryPoint(
"/login.jsp"));
filter.setPortResolver(null);
try {
filter.afterPropertiesSet();

View File

@@ -45,7 +45,7 @@ public class RetryWithHttpEntryPointTests extends TestCase {
public void testDetectsMissingPortMapper() throws Exception {
RetryWithHttpEntryPoint ep = new RetryWithHttpEntryPoint();
ep.setPortResolver(new MockPortResolver(80, 443));
ep.setPortMapper(null);
try {
ep.afterPropertiesSet();
@@ -57,7 +57,7 @@ public class RetryWithHttpEntryPointTests extends TestCase {
public void testDetectsMissingPortResolver() throws Exception {
RetryWithHttpEntryPoint ep = new RetryWithHttpEntryPoint();
ep.setPortMapper(new PortMapperImpl());
ep.setPortResolver(null);
try {
ep.afterPropertiesSet();

View File

@@ -45,7 +45,7 @@ public class RetryWithHttpsEntryPointTests extends TestCase {
public void testDetectsMissingPortMapper() throws Exception {
RetryWithHttpsEntryPoint ep = new RetryWithHttpsEntryPoint();
ep.setPortResolver(new MockPortResolver(80, 443));
ep.setPortMapper(null);
try {
ep.afterPropertiesSet();
@@ -57,7 +57,7 @@ public class RetryWithHttpsEntryPointTests extends TestCase {
public void testDetectsMissingPortResolver() throws Exception {
RetryWithHttpsEntryPoint ep = new RetryWithHttpsEntryPoint();
ep.setPortMapper(new PortMapperImpl());
ep.setPortResolver(null);
try {
ep.afterPropertiesSet();

View File

@@ -60,7 +60,7 @@ public class AuthenticationProcessingFilterEntryPointTests extends TestCase {
public void testDetectsMissingPortMapper() throws Exception {
AuthenticationProcessingFilterEntryPoint ep = new AuthenticationProcessingFilterEntryPoint();
ep.setLoginFormUrl("xxx");
ep.setPortResolver(new MockPortResolver(80, 443));
ep.setPortMapper(null);
try {
ep.afterPropertiesSet();
@@ -73,7 +73,7 @@ public class AuthenticationProcessingFilterEntryPointTests extends TestCase {
public void testDetectsMissingPortResolver() throws Exception {
AuthenticationProcessingFilterEntryPoint ep = new AuthenticationProcessingFilterEntryPoint();
ep.setLoginFormUrl("xxx");
ep.setPortMapper(new PortMapperImpl());
ep.setPortResolver(null);
try {
ep.afterPropertiesSet();