Package com.mockobjects.mail
Class MockSession
java.lang.Object
com.mockobjects.MockObject
com.mockobjects.mail.MockSession
- All Implemented Interfaces:
Session
,Verifiable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getDebug()
getDefaultInstance
(Properties props) getDefaultInstance
(Properties props, Authenticator authenticator) Folder
Folder
getFolder
(Store store) Folder
getFolder
(URLName url) getInstance
(Properties props) getInstance
(Properties props, Authenticator authenticator) PasswordAuthentication
getPasswordAuthentication
(URLName url) getProperty
(String name) Provider
getProvider
(String name) Provider[]
Store
getStore()
Store
Store
getStore
(Provider provider) Store
getStore
(URLName url) getTransport
(Address address) getTransport
(String aTransportName) getTransport
(Provider provider) getTransport
(URLName url) javax.mail.Session
PasswordAuthentication
requestPasswordAuthentication
(InetAddress address, int port, String protocol, String prompt, String defaultUserName) void
setDebug
(boolean aDebug) void
setExpectedDebug
(boolean aDebug) void
setExpectedTransport
(String aTransportName) void
setPasswordAuthentication
(URLName url, PasswordAuthentication passwordAuthentication) void
setProvider
(Provider provider) void
setupGetTransport
(Transport aTransport) Methods inherited from class com.mockobjects.MockObject
notImplemented, notYetImplemented, verify
-
Constructor Details
-
MockSession
public MockSession()
-
-
Method Details
-
getInstance
- Specified by:
getInstance
in interfaceSession
-
getInstance
- Specified by:
getInstance
in interfaceSession
-
getDefaultInstance
- Specified by:
getDefaultInstance
in interfaceSession
-
getDefaultInstance
- Specified by:
getDefaultInstance
in interfaceSession
-
setExpectedDebug
public void setExpectedDebug(boolean aDebug) -
setDebug
public void setDebug(boolean aDebug) -
getDebug
public boolean getDebug() -
getProviders
public Provider[] getProviders()- Specified by:
getProviders
in interfaceSession
-
getProvider
- Specified by:
getProvider
in interfaceSession
-
setProvider
public void setProvider(Provider provider) - Specified by:
setProvider
in interfaceSession
-
getTransport
- Specified by:
getTransport
in interfaceSession
-
setExpectedTransport
-
setupGetTransport
-
getTransport
- Specified by:
getTransport
in interfaceSession
-
getTransport
- Specified by:
getTransport
in interfaceSession
-
getTransport
- Specified by:
getTransport
in interfaceSession
-
getTransport
- Specified by:
getTransport
in interfaceSession
-
getStore
public Store getStore() -
getStore
-
getStore
public Store getStore(URLName url) -
getStore
public Store getStore(Provider provider) -
getFolder
public Folder getFolder() -
getFolder
public Folder getFolder(Store store) -
getFolder
public Folder getFolder(URLName url) -
setPasswordAuthentication
public void setPasswordAuthentication(URLName url, PasswordAuthentication passwordAuthentication) - Specified by:
setPasswordAuthentication
in interfaceSession
-
getPasswordAuthentication
public PasswordAuthentication getPasswordAuthentication(URLName url) - Specified by:
getPasswordAuthentication
in interfaceSession
-
requestPasswordAuthentication
public PasswordAuthentication requestPasswordAuthentication(InetAddress address, int port, String protocol, String prompt, String defaultUserName) - Specified by:
requestPasswordAuthentication
in interfaceSession
-
getProperties
- Specified by:
getProperties
in interfaceSession
-
getProperty
- Specified by:
getProperty
in interfaceSession
-
getWrappedSession
public javax.mail.Session getWrappedSession()- Specified by:
getWrappedSession
in interfaceSession
-