Improvements in up-to-date checking and use of parallel tests where possible.
This commit is contained in:
+16
-2
@@ -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/**")
|
||||
}
|
||||
|
||||
-8
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user