com.mockobjects.mail
Class MockService
java.lang.Object
com.mockobjects.MockObject
com.mockobjects.mail.MockService
- All Implemented Interfaces:
- Service, Verifiable
- Direct Known Subclasses:
- MockTransport
- public class MockService
- extends MockObject
- implements Service
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockService
public MockService()
setExpectedCloseCalls
public void setExpectedCloseCalls(int aNumberOfCalls)
close
public void close()
- Specified by:
close
in interface Service
connect
public void connect()
- Specified by:
connect
in interface Service
connect
public void connect(java.lang.String aHost,
int aPort,
java.lang.String aUser,
java.lang.String aPassword)
- Specified by:
connect
in interface Service
connect
public void connect(java.lang.String aHost,
java.lang.String aUser,
java.lang.String aPassword)
- Specified by:
connect
in interface Service
isConnected
public boolean isConnected()
- Specified by:
isConnected
in interface Service
getURLName
public URLName getURLName()
- Specified by:
getURLName
in interface Service
addConnectionListener
public void addConnectionListener(ConnectionListener connectionListener)
- Specified by:
addConnectionListener
in interface Service
removeConnectionListener
public void removeConnectionListener(ConnectionListener connectionListener)
- Specified by:
removeConnectionListener
in interface Service
Copyright © 2002 Mock Objects. All Rights Reserved.