com.mockobjects.mail

Class MockSession

Implemented Interfaces:
Session, Verifiable

public class MockSession
extends MockObject
implements Session

Method Summary

boolean
getDebug()
Session
getDefaultInstance(Properties props)
Session
getDefaultInstance(Properties props, Authenticator authenticator)
Folder
getFolder()
Folder
getFolder(Store store)
Folder
getFolder(URLName url)
Session
getInstance(Properties props)
Session
getInstance(Properties props, Authenticator authenticator)
PasswordAuthentication
getPasswordAuthentication(URLName url)
Properties
getProperties()
String
getProperty(String name)
Provider
getProvider(String name)
Provider[]
getProviders()
Store
getStore()
Store
getStore(Provider provider)
Store
getStore(String name)
Store
getStore(URLName url)
Transport
getTransport()
Transport
getTransport(Address address)
Transport
getTransport(Provider provider)
Transport
getTransport(String aTransportName)
Transport
getTransport(URLName url)
javax.mail.Session
getWrappedSession()
PasswordAuthentication
requestPasswordAuthentication(java.net.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

Method Details

getDebug

public boolean getDebug()
Specified by:
getDebug in interface Session

getDefaultInstance

public Session getDefaultInstance(Properties props)
Specified by:
getDefaultInstance in interface Session

getDefaultInstance

public Session getDefaultInstance(Properties props,
                                  Authenticator authenticator)
Specified by:
getDefaultInstance in interface Session

getFolder

public Folder getFolder()

getFolder

public Folder getFolder(Store store)

getFolder

public Folder getFolder(URLName url)
Specified by:
getFolder in interface Session

getInstance

public Session getInstance(Properties props)
Specified by:
getInstance in interface Session

getInstance

public Session getInstance(Properties props,
                           Authenticator authenticator)
Specified by:
getInstance in interface Session

getPasswordAuthentication

public PasswordAuthentication getPasswordAuthentication(URLName url)
Specified by:
getPasswordAuthentication in interface Session

getProperties

public Properties getProperties()
Specified by:
getProperties in interface Session

getProperty

public String getProperty(String name)
Specified by:
getProperty in interface Session

getProvider

public Provider getProvider(String name)
Specified by:
getProvider in interface Session

getProviders

public Provider[] getProviders()
Specified by:
getProviders in interface Session

getStore

public Store getStore()
Specified by:
getStore in interface Session

getStore

public Store getStore(Provider provider)
Specified by:
getStore in interface Session

getStore

public Store getStore(String name)
Specified by:
getStore in interface Session

getStore

public Store getStore(URLName url)
Specified by:
getStore in interface Session

getTransport

public Transport getTransport()
Specified by:
getTransport in interface Session

getTransport

public Transport getTransport(Address address)
Specified by:
getTransport in interface Session

getTransport

public Transport getTransport(Provider provider)
Specified by:
getTransport in interface Session

getTransport

public Transport getTransport(String aTransportName)
Specified by:
getTransport in interface Session

getTransport

public Transport getTransport(URLName url)
Specified by:
getTransport in interface Session

getWrappedSession

public javax.mail.Session getWrappedSession()
Specified by:
getWrappedSession in interface Session

requestPasswordAuthentication

public PasswordAuthentication requestPasswordAuthentication(java.net.InetAddress address,
                                                            int port,
                                                            String protocol,
                                                            String prompt,
                                                            String defaultUserName)
Specified by:
requestPasswordAuthentication in interface Session

setDebug

public void setDebug(boolean aDebug)
Specified by:
setDebug in interface Session

setExpectedDebug

public void setExpectedDebug(boolean aDebug)

setExpectedTransport

public void setExpectedTransport(String aTransportName)

setPasswordAuthentication

public void setPasswordAuthentication(URLName url,
                                      PasswordAuthentication passwordAuthentication)
Specified by:
setPasswordAuthentication in interface Session

setProvider

public void setProvider(Provider provider)
Specified by:
setProvider in interface Session

setupGetTransport

public void setupGetTransport(Transport aTransport)

Copyright © 2002 Mock Objects. All Rights Reserved.