Package org.springframework.ldap.test
Class AttributeCheckAttributesMapper
- java.lang.Object
-
- org.springframework.ldap.test.AttributeCheckAttributesMapper
-
- All Implemented Interfaces:
org.springframework.ldap.core.AttributesMapper<java.lang.Object>
public class AttributeCheckAttributesMapper extends java.lang.Object implements org.springframework.ldap.core.AttributesMapper<java.lang.Object>Dummy AttributesMapper for testing purposes to check that the received Attributes are the expected ones.
-
-
Constructor Summary
Constructors Constructor Description AttributeCheckAttributesMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectmapFromAttributes(javax.naming.directory.Attributes attributes)voidsetAbsentAttributes(java.lang.String[] absentAttributes)voidsetExpectedAttributes(java.lang.String[] expectedAttributes)voidsetExpectedValues(java.lang.String[] expectedValues)
-
-
-
Method Detail
-
mapFromAttributes
public java.lang.Object mapFromAttributes(javax.naming.directory.Attributes attributes) throws javax.naming.NamingException- Specified by:
mapFromAttributesin interfaceorg.springframework.ldap.core.AttributesMapper<java.lang.Object>- Throws:
javax.naming.NamingException
-
setAbsentAttributes
public void setAbsentAttributes(java.lang.String[] absentAttributes)
-
setExpectedAttributes
public void setExpectedAttributes(java.lang.String[] expectedAttributes)
-
setExpectedValues
public void setExpectedValues(java.lang.String[] expectedValues)
-
-