com.mockobjects.naming.directory

Class MockDirContext

Implemented Interfaces:
Context, DirContext, Verifiable

public class MockDirContext
extends MockContext
implements DirContext

Method Summary

void
bind(Name aName, Object object, Attributes attributes)
void
bind(String aName, Object object, Attributes attributes)
DirContext
createSubcontext(Name aName, Attributes attributes)
DirContext
createSubcontext(String aName, Attributes attributes)
Attributes
getAttributes(Name aName)
Attributes
getAttributes(Name aName, String[] attrIds)
Attributes
getAttributes(String aName)
Attributes
getAttributes(String aName, String[] attrIds)
DirContext
getSchema(Name aName)
DirContext
getSchema(String aName)
DirContext
getSchemaClassDefinition(Name aName)
DirContext
getSchemaClassDefinition(String aName)
void
modifyAttributes(Name aName, ModificationItem[] mods)
void
modifyAttributes(Name aName, int aModificationOperation, Attributes attributes)
void
modifyAttributes(String aName, ModificationItem[] mods)
void
modifyAttributes(String aName, int aModificationOperation, Attributes attributes)
void
rebind(Name aName, Object object, Attributes attributes)
void
rebind(String aName, Object object, Attributes attributes)
NamingEnumeration
search(Name aName, Attributes attributes)
NamingEnumeration
search(Name aName, Attributes attributes, String[] anAttributeToReturn)
NamingEnumeration
search(Name aName, String aFilter, Object[] filterArgs, SearchControls cons)
NamingEnumeration
search(Name aName, String aFilter, SearchControls cons)
NamingEnumeration
search(String aName, Attributes attributes)
NamingEnumeration
search(String aName, Attributes attributes, String[] anAttributeToReturn)
NamingEnumeration
search(String aName, String aFilter, Object[] filterArgs, SearchControls cons)
NamingEnumeration
search(String aSearchName, String aFilter, SearchControls searchControls)
void
setExpectedGetAttributesCount(int callCount)
void
setExpectedGetAttributesName(Object aName)
void
setExpectedModifyAttributes(String aName, int aModificationOperation, Attributes attributes)
void
setExpectedSearch(String aSearchName, String aFilter, SearchControls searchControls)
void
setupAttributes(Attributes anAttributeToReturn)
void
setupSearchResult(NamingEnumeration results)

Methods inherited from class com.mockobjects.naming.MockContext

addToEnvironment, bind, bind, close, composeName, composeName, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, getEnvironment, getNameInNamespace, getNameParser, getNameParser, list, list, listBindings, listBindings, lookup, lookup, lookupLink, lookupLink, rebind, rebind, removeFromEnvironment, rename, rename, setExpectedBind, setExpectedCreateSubContext, setExpectedLookupName, setExpectedReBind, setupAddCreateSubContext, setupAddLookup, unbind, unbind

Methods inherited from class com.mockobjects.MockObject

notImplemented, notYetImplemented, verify

Method Details

bind

public void bind(Name aName,
                 Object object,
                 Attributes attributes)
            throws NamingException

bind

public void bind(String aName,
                 Object object,
                 Attributes attributes)
            throws NamingException

createSubcontext

public DirContext createSubcontext(Name aName,
                                   Attributes attributes)
            throws NamingException

createSubcontext

public DirContext createSubcontext(String aName,
                                   Attributes attributes)
            throws NamingException

getAttributes

public Attributes getAttributes(Name aName)
            throws NamingException

getAttributes

public Attributes getAttributes(Name aName,
                                String[] attrIds)
            throws NamingException

getAttributes

public Attributes getAttributes(String aName)
            throws NamingException

getAttributes

public Attributes getAttributes(String aName,
                                String[] attrIds)
            throws NamingException

getSchema

public DirContext getSchema(Name aName)
            throws NamingException

getSchema

public DirContext getSchema(String aName)
            throws NamingException

getSchemaClassDefinition

public DirContext getSchemaClassDefinition(Name aName)
            throws NamingException

getSchemaClassDefinition

public DirContext getSchemaClassDefinition(String aName)
            throws NamingException

modifyAttributes

public void modifyAttributes(Name aName,
                             ModificationItem[] mods)
            throws NamingException

modifyAttributes

public void modifyAttributes(Name aName,
                             int aModificationOperation,
                             Attributes attributes)
            throws NamingException

modifyAttributes

public void modifyAttributes(String aName,
                             ModificationItem[] mods)
            throws NamingException

modifyAttributes

public void modifyAttributes(String aName,
                             int aModificationOperation,
                             Attributes attributes)
            throws NamingException

rebind

public void rebind(Name aName,
                   Object object,
                   Attributes attributes)
            throws NamingException

rebind

public void rebind(String aName,
                   Object object,
                   Attributes attributes)
            throws NamingException

search

public NamingEnumeration search(Name aName,
                                Attributes attributes)
            throws NamingException

search

public NamingEnumeration search(Name aName,
                                Attributes attributes,
                                String[] anAttributeToReturn)
            throws NamingException

search

public NamingEnumeration search(Name aName,
                                String aFilter,
                                Object[] filterArgs,
                                SearchControls cons)
            throws NamingException

search

public NamingEnumeration search(Name aName,
                                String aFilter,
                                SearchControls cons)
            throws NamingException

search

public NamingEnumeration search(String aName,
                                Attributes attributes)
            throws NamingException

search

public NamingEnumeration search(String aName,
                                Attributes attributes,
                                String[] anAttributeToReturn)
            throws NamingException

search

public NamingEnumeration search(String aName,
                                String aFilter,
                                Object[] filterArgs,
                                SearchControls cons)
            throws NamingException

search

public NamingEnumeration search(String aSearchName,
                                String aFilter,
                                SearchControls searchControls)
            throws NamingException

setExpectedGetAttributesCount

public void setExpectedGetAttributesCount(int callCount)

setExpectedGetAttributesName

public void setExpectedGetAttributesName(Object aName)

setExpectedModifyAttributes

public void setExpectedModifyAttributes(String aName,
                                        int aModificationOperation,
                                        Attributes attributes)

setExpectedSearch

public void setExpectedSearch(String aSearchName,
                              String aFilter,
                              SearchControls searchControls)

setupAttributes

public void setupAttributes(Attributes anAttributeToReturn)

setupSearchResult

public void setupSearchResult(NamingEnumeration results)

Copyright © 2002 Mock Objects. All Rights Reserved.