From ea5f2088b5870cb61aed14804079d39a0ef4a10d Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Mon, 12 Jul 2010 12:31:46 +0100 Subject: [PATCH] Comment out OpenLDAP tests to allow running in IDEA, and reduce default load configuration of performance test class. --- .../security/performance/FilterChainPerformanceTests.java | 5 +++-- .../security/ldap/ppolicy/OpenLDAPIntegrationTestSuite.java | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/itest/context/src/test/java/org/springframework/security/performance/FilterChainPerformanceTests.java b/itest/context/src/test/java/org/springframework/security/performance/FilterChainPerformanceTests.java index 9a3c32201e..3d9a4f6fcf 100644 --- a/itest/context/src/test/java/org/springframework/security/performance/FilterChainPerformanceTests.java +++ b/itest/context/src/test/java/org/springframework/security/performance/FilterChainPerformanceTests.java @@ -34,8 +34,9 @@ import org.springframework.util.StopWatch; @ContextConfiguration(locations={"/filter-chain-performance-app-context.xml"}) @RunWith(SpringJUnit4ClassRunner.class) public class FilterChainPerformanceTests { - private static final int N_INVOCATIONS = 1000; - private static final int N_AUTHORITIES = 200; + // Adjust as required + private static final int N_INVOCATIONS = 1; // 1000 + private static final int N_AUTHORITIES = 2; // 200 private static StopWatch sw = new StopWatch("Filter Chain Performance Tests"); private final UsernamePasswordAuthenticationToken user = new UsernamePasswordAuthenticationToken("bob", "bobspassword", createRoles(N_AUTHORITIES)); diff --git a/ldap/src/test/java/org/springframework/security/ldap/ppolicy/OpenLDAPIntegrationTestSuite.java b/ldap/src/test/java/org/springframework/security/ldap/ppolicy/OpenLDAPIntegrationTestSuite.java index dee29ec421..38a81bd5ad 100644 --- a/ldap/src/test/java/org/springframework/security/ldap/ppolicy/OpenLDAPIntegrationTestSuite.java +++ b/ldap/src/test/java/org/springframework/security/ldap/ppolicy/OpenLDAPIntegrationTestSuite.java @@ -21,7 +21,7 @@ import org.springframework.security.ldap.userdetails.LdapUserDetailsImpl; */ public class OpenLDAPIntegrationTestSuite { PasswordPolicyAwareContextSource cs; - +/* @Before public void createContextSource() throws Exception { cs = new PasswordPolicyAwareContextSource("ldap://localhost:22389/dc=springsource,dc=com"); @@ -62,5 +62,5 @@ public class OpenLDAPIntegrationTestSuite { PasswordPolicyData ud = (LdapUserDetailsImpl) a.getPrincipal(); assertTrue(ud.getTimeBeforeExpiration() < Integer.MAX_VALUE && ud.getTimeBeforeExpiration() > 0); } - +*/ }