Class AttributeCheckContextMapper

java.lang.Object
org.springframework.ldap.test.AttributeCheckContextMapper
All Implemented Interfaces:
org.springframework.ldap.core.ContextMapper<org.springframework.ldap.core.DirContextAdapter>

public class AttributeCheckContextMapper extends Object implements org.springframework.ldap.core.ContextMapper<org.springframework.ldap.core.DirContextAdapter>
Dummy ContextMapper for testing purposes to check that the received Attributes are the expected ones.
  • Constructor Details

    • AttributeCheckContextMapper

      public AttributeCheckContextMapper()
  • Method Details

    • mapFromContext

      public org.springframework.ldap.core.DirContextAdapter mapFromContext(Object ctx)
      Specified by:
      mapFromContext in interface org.springframework.ldap.core.ContextMapper<org.springframework.ldap.core.DirContextAdapter>
    • setAbsentAttributes

      public void setAbsentAttributes(String[] absentAttributes)
    • setExpectedAttributes

      public void setExpectedAttributes(String[] expectedAttributes)
    • setExpectedValues

      public void setExpectedValues(String[] expectedValues)