1
0
mirror of synced 2026-08-05 17:57:15 +00:00

Improvements in up-to-date checking and use of parallel tests where possible.

This commit is contained in:
Luke Taylor
2010-08-05 02:11:00 +01:00
parent 64375484a1
commit 413b2a06e3
8 changed files with 52 additions and 21 deletions
+16 -2
View File
@@ -16,12 +16,12 @@ dependencies {
provided "javax.servlet:servlet-api:2.5"
groovy group: 'org.codehaus.groovy', name: 'groovy', version: '1.7.2'
groovy group: 'org.codehaus.groovy', name: 'groovy', version: '1.7.3'
testCompile project(':spring-security-ldap'),
project(':spring-security-openid'),
'org.openid4java:openid4java-nodeps:0.9.5',
files(this.project(':spring-security-core').sourceSets.test.classesDir),
project(':spring-security-core').sourceSets.test.classes,
'javax.annotation:jsr250-api:1.0',
"org.springframework.ldap:spring-ldap-core:$springLdapVersion",
"org.springframework:spring-jdbc:$springVersion",
@@ -32,3 +32,17 @@ dependencies {
testRuntime "hsqldb:hsqldb:$hsqlVersion",
"cglib:cglib-nodep:2.2"
}
task ldapTests(type: Test) {
include ("**/ldap/**")
maxParallelForks = 1
// GRADLE-1090
testClassesDir = sourceSets.test.classesDir
classpath = sourceSets.test.runtimeClasspath
testReport = false
}
test {
dependsOn ldapTests
exclude ("**/ldap/**")
}
@@ -117,14 +117,6 @@ public class LdapProviderBeanDefinitionParserTests {
provider.authenticate(new UsernamePasswordAuthenticationToken("ben", "ben"));
}
@Test
public void detectsNonStandardServerId() {
setContext("<ldap-server id='myServer'/> " +
"<authentication-manager>" +
" <ldap-authentication-provider />" +
"</authentication-manager>");
}
@Test
public void inetOrgContextMapperIsSupported() throws Exception {
setContext(