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
-
Method Summary
Modifier and TypeMethodDescriptionmapFromAttributes
(Attributes attributes) Map Attributes to an object.void
setAbsentAttributes
(String[] absentAttributes) void
setExpectedAttributes
(String[] expectedAttributes) void
setExpectedValues
(String[] expectedValues)
-
Constructor Details
-
AttributeCheckAttributesMapper
public AttributeCheckAttributesMapper()
-
-
Method Details
-
mapFromAttributes
Description copied from interface:AttributesMapper
Map Attributes to an object. The supplied attributes are the attributes from a single SearchResult.- Specified by:
mapFromAttributes
in 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
-