mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-28 23:02:15 +00:00
Uncommented tests which now work due to apache-ds bugfixes
This commit is contained in:
parent
0d9cae43bf
commit
25bc67885d
@ -23,7 +23,6 @@ import javax.naming.directory.DirContext;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
DOCUMENT ME!
|
|
||||||
*
|
*
|
||||||
* @author Luke Taylor
|
* @author Luke Taylor
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
@ -42,8 +41,7 @@ public class LdapTemplateTests extends AbstractLdapServerTestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void testCompareOfCorrectByteValueSucceeds() {
|
public void testCompareOfCorrectByteValueSucceeds() {
|
||||||
// Doesn't work with embedded server due to bugs in apacheds
|
assertTrue(template.compare("uid=bob,ou=people,dc=acegisecurity,dc=org", "userPassword", LdapUtils.getUtf8Bytes("bobspassword")));
|
||||||
// assertTrue(template.compare("uid=bob,ou=people,dc=acegisecurity,dc=org", "userPassword", LdapUtils.getUtf8Bytes("bobspassword")));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testCompareOfCorrectValueSucceeds() {
|
public void testCompareOfCorrectValueSucceeds() {
|
||||||
@ -51,8 +49,7 @@ public class LdapTemplateTests extends AbstractLdapServerTestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void testCompareOfWrongByteValueFails() {
|
public void testCompareOfWrongByteValueFails() {
|
||||||
// Doesn't work with embedded server due to bugs in apacheds
|
assertFalse(template.compare("uid=bob,ou=people,dc=acegisecurity,dc=org", "userPassword", LdapUtils.getUtf8Bytes("wrongvalue")));
|
||||||
// assertFalse(template.compare("uid=bob,ou=people,dc=acegisecurity,dc=org", "userPassword", LdapUtils.getUtf8Bytes("wrongvalue")));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testCompareOfWrongValueFails() {
|
public void testCompareOfWrongValueFails() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user