Package org.springframework.ldap.test
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 java.lang.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 Summary
Constructors Constructor Description AttributeCheckContextMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.ldap.core.DirContextAdaptermapFromContext(java.lang.Object ctx)voidsetAbsentAttributes(java.lang.String[] absentAttributes)voidsetExpectedAttributes(java.lang.String[] expectedAttributes)voidsetExpectedValues(java.lang.String[] expectedValues)
-
-
-
Method Detail
-
mapFromContext
public org.springframework.ldap.core.DirContextAdapter mapFromContext(java.lang.Object ctx)
- Specified by:
mapFromContextin interfaceorg.springframework.ldap.core.ContextMapper<org.springframework.ldap.core.DirContextAdapter>
-
setAbsentAttributes
public void setAbsentAttributes(java.lang.String[] absentAttributes)
-
setExpectedAttributes
public void setExpectedAttributes(java.lang.String[] expectedAttributes)
-
setExpectedValues
public void setExpectedValues(java.lang.String[] expectedValues)
-
-