com.mockobjects.rmi

Class MockNaming

Implemented Interfaces:
Naming, Verifiable

public class MockNaming
extends MockObject
implements Naming

Method Summary

void
bind(String name, Remote obj)
String[]
list(String name)
Remote
lookup(String name)
void
rebind(String name, Remote obj)
void
setExpectedLookupName(String aName)
void
setupAddLookup(Remote aRemote)
void
unbind(String name)

Methods inherited from class com.mockobjects.MockObject

notImplemented, notYetImplemented, verify

Method Details

bind

public void bind(String name,
                 Remote obj)
            throws AlreadyBoundException,
                   MalformedURLException,
                   RemoteException
Specified by:
bind in interface Naming

list

public String[] list(String name)
            throws RemoteException,
                   MalformedURLException
Specified by:
list in interface Naming

lookup

public Remote lookup(String name)
            throws NotBoundException,
                   MalformedURLException,
                   RemoteException
Specified by:
lookup in interface Naming

rebind

public void rebind(String name,
                   Remote obj)
            throws RemoteException,
                   MalformedURLException
Specified by:
rebind in interface Naming

setExpectedLookupName

public void setExpectedLookupName(String aName)

setupAddLookup

public void setupAddLookup(Remote aRemote)

unbind

public void unbind(String name)
            throws RemoteException,
                   NotBoundException,
                   MalformedURLException
Specified by:
unbind in interface Naming

Copyright © 2002 Mock Objects. All Rights Reserved.