Class AttributeCheckAttributesMapper

java.lang.Object
org.springframework.ldap.test.AttributeCheckAttributesMapper
All Implemented Interfaces:
AttributesMapper<Object>

public class AttributeCheckAttributesMapper extends Object implements AttributesMapper<Object>
Dummy AttributesMapper for testing purposes to check that the received Attributes are the expected ones.
  • Constructor Details

    • AttributeCheckAttributesMapper

      public AttributeCheckAttributesMapper()
  • Method Details

    • mapFromAttributes

      public Object mapFromAttributes(Attributes attributes) throws 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 interface AttributesMapper<Object>
      Parameters:
      attributes - attributes from a SearchResult.
      Returns:
      an object built from the attributes.
      Throws:
      NamingException - if any error occurs mapping the attributes
    • setAbsentAttributes

      public void setAbsentAttributes(String[] absentAttributes)
    • setExpectedAttributes

      public void setExpectedAttributes(String[] expectedAttributes)
    • setExpectedValues

      public void setExpectedValues(String[] expectedValues)