Package org.springframework.ldap.test
Class AttributeCheckAttributesMapper
- java.lang.Object
-
- org.springframework.ldap.test.AttributeCheckAttributesMapper
-
- All Implemented Interfaces:
AttributesMapper<java.lang.Object>
public class AttributeCheckAttributesMapper extends java.lang.Object implements 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)Map Attributes to an object.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.NamingExceptionDescription copied from interface:AttributesMapperMap Attributes to an object. The supplied attributes are the attributes from a single SearchResult.- Specified by:
mapFromAttributesin interfaceAttributesMapper<java.lang.Object>- Parameters:
attributes- attributes from a SearchResult.- Returns:
- an object built from the attributes.
- Throws:
javax.naming.NamingException- if any error occurs mapping the attributes
-
setAbsentAttributes
public void setAbsentAttributes(java.lang.String[] absentAttributes)
-
setExpectedAttributes
public void setExpectedAttributes(java.lang.String[] expectedAttributes)
-
setExpectedValues
public void setExpectedValues(java.lang.String[] expectedValues)
-
-