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.Object
mapFromAttributes(javax.naming.directory.Attributes attributes)
Map Attributes to an object.void
setAbsentAttributes(java.lang.String[] absentAttributes)
void
setExpectedAttributes(java.lang.String[] expectedAttributes)
void
setExpectedValues(java.lang.String[] expectedValues)
-
-
-
Method Detail
-
mapFromAttributes
public java.lang.Object mapFromAttributes(javax.naming.directory.Attributes attributes) throws javax.naming.NamingException
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<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)
-
-