From bab55a68b8480ebb1bb926c44d78bbe9d0b551ae Mon Sep 17 00:00:00 2001 From: Ulrik Sandberg Date: Sun, 25 Feb 2007 17:47:43 +0000 Subject: [PATCH] Now using the top-level callback handler classes. --- .../ldap/control/LdapTemplateSortedSearchITest.java | 3 ++- .../ldap/control/LdapTemplateVirtualListViewSearchITest.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sandbox/src/itest-openldap/java/org/springframework/ldap/control/LdapTemplateSortedSearchITest.java b/sandbox/src/itest-openldap/java/org/springframework/ldap/control/LdapTemplateSortedSearchITest.java index 13f742d2..c98df6af 100644 --- a/sandbox/src/itest-openldap/java/org/springframework/ldap/control/LdapTemplateSortedSearchITest.java +++ b/sandbox/src/itest-openldap/java/org/springframework/ldap/control/LdapTemplateSortedSearchITest.java @@ -26,6 +26,7 @@ import javax.naming.directory.SearchControls; import org.springframework.ldap.Person; import org.springframework.ldap.core.AttributesMapper; +import org.springframework.ldap.core.AttributesMapperCallbackHandler; import org.springframework.ldap.core.CollectingNameClassPairCallbackHandler; import org.springframework.ldap.core.DistinguishedName; import org.springframework.ldap.core.LdapTemplate; @@ -57,7 +58,7 @@ public class LdapTemplateSortedSearchITest extends protected void onSetUp() throws Exception { super.onSetUp(); PersonAttributesMapper mapper = new PersonAttributesMapper(); - callbackHandler = tested.new AttributesMapperCallbackHandler(mapper); + callbackHandler = new AttributesMapperCallbackHandler(mapper); searchControls = new SearchControls(); searchControls.setSearchScope(SearchControls.SUBTREE_SCOPE); } diff --git a/sandbox/src/itest-openldap/java/org/springframework/ldap/control/LdapTemplateVirtualListViewSearchITest.java b/sandbox/src/itest-openldap/java/org/springframework/ldap/control/LdapTemplateVirtualListViewSearchITest.java index 4f4d33aa..dd155b30 100644 --- a/sandbox/src/itest-openldap/java/org/springframework/ldap/control/LdapTemplateVirtualListViewSearchITest.java +++ b/sandbox/src/itest-openldap/java/org/springframework/ldap/control/LdapTemplateVirtualListViewSearchITest.java @@ -23,6 +23,7 @@ import javax.naming.directory.SearchControls; import org.springframework.ldap.Person; import org.springframework.ldap.core.AttributesMapper; +import org.springframework.ldap.core.AttributesMapperCallbackHandler; import org.springframework.ldap.core.CollectingNameClassPairCallbackHandler; import org.springframework.ldap.core.LdapTemplate; import org.springframework.test.AbstractDependencyInjectionSpringContextTests; @@ -53,7 +54,7 @@ public class LdapTemplateVirtualListViewSearchITest extends protected void onSetUp() throws Exception { super.onSetUp(); PersonAttributesMapper mapper = new PersonAttributesMapper(); - callbackHandler = tested.new AttributesMapperCallbackHandler(mapper); + callbackHandler = new AttributesMapperCallbackHandler(mapper); searchControls = new SearchControls(); searchControls.setSearchScope(SearchControls.SUBTREE_SCOPE); }