Class 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 Detail

      • AttributeCheckAttributesMapper

        public AttributeCheckAttributesMapper()
    • 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 interface AttributesMapper<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)