Package org.springframework.ldap.test
Class AttributeCheckAttributesMapper
java.lang.Object
org.springframework.ldap.test.AttributeCheckAttributesMapper
- All Implemented Interfaces:
 AttributesMapper<Object>
Dummy AttributesMapper for testing purposes to check that the received Attributes are
 the expected ones.
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionmapFromAttributes(Attributes attributes) Map Attributes to an object.voidsetAbsentAttributes(String[] absentAttributes) voidsetExpectedAttributes(String[] expectedAttributes) voidsetExpectedValues(String[] expectedValues)  
- 
Constructor Details
- 
AttributeCheckAttributesMapper
public AttributeCheckAttributesMapper() 
 - 
 - 
Method Details
- 
mapFromAttributes
Description copied from interface:AttributesMapperMap Attributes to an object. The supplied attributes are the attributes from a single SearchResult.- Specified by:
 mapFromAttributesin interfaceAttributesMapper<Object>- Parameters:
 attributes- attributes from a SearchResult.- Returns:
 - an object built from the attributes.
 - Throws:
 NamingException- if any error occurs mapping the attributes
 - 
setAbsentAttributes
 - 
setExpectedAttributes
 - 
setExpectedValues
 
 -