浏览代码

Uncommented tests which now work due to apache-ds bugfixes

Luke Taylor 18 年之前
父节点
当前提交
25bc67885d
共有 1 个文件被更改,包括 2 次插入5 次删除
  1. 2 5
      core/src/test/java/org/acegisecurity/ldap/LdapTemplateTests.java

+ 2 - 5
core/src/test/java/org/acegisecurity/ldap/LdapTemplateTests.java

@@ -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() {