test.mock.mail
Class MockSession
java.lang.Object
com.mockobjects.MockObject
test.mock.mail.MockSession
- All Implemented Interfaces:
- alt.javax.mail.Session, com.mockobjects.Verifiable
- public class MockSession
- extends com.mockobjects.MockObject
- implements alt.javax.mail.Session
| Methods inherited from class com.mockobjects.MockObject |
assertEquals, assertEquals, assertTrue, fail, notImplemented, notYetImplemented, notYetImplemented, verify |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockSession
public MockSession()
getInstance
public alt.javax.mail.Session getInstance(java.util.Properties props,
javax.mail.Authenticator authenticator)
- Specified by:
getInstance in interface alt.javax.mail.Session
getInstance
public alt.javax.mail.Session getInstance(java.util.Properties props)
- Specified by:
getInstance in interface alt.javax.mail.Session
getDefaultInstance
public alt.javax.mail.Session getDefaultInstance(java.util.Properties props,
javax.mail.Authenticator authenticator)
- Specified by:
getDefaultInstance in interface alt.javax.mail.Session
getDefaultInstance
public alt.javax.mail.Session getDefaultInstance(java.util.Properties props)
- Specified by:
getDefaultInstance in interface alt.javax.mail.Session
setExpectedDebug
public void setExpectedDebug(boolean aDebug)
setDebug
public void setDebug(boolean aDebug)
- Specified by:
setDebug in interface alt.javax.mail.Session
getDebug
public boolean getDebug()
- Specified by:
getDebug in interface alt.javax.mail.Session
getProviders
public javax.mail.Provider[] getProviders()
- Specified by:
getProviders in interface alt.javax.mail.Session
getProvider
public javax.mail.Provider getProvider(java.lang.String name)
- Specified by:
getProvider in interface alt.javax.mail.Session
setProvider
public void setProvider(javax.mail.Provider provider)
- Specified by:
setProvider in interface alt.javax.mail.Session
getTransport
public alt.javax.mail.Transport getTransport()
- Specified by:
getTransport in interface alt.javax.mail.Session
setupGetTransport
public void setupGetTransport(alt.javax.mail.Transport aTransport)
getTransport
public alt.javax.mail.Transport getTransport(java.lang.String aTransportName)
- Specified by:
getTransport in interface alt.javax.mail.Session
getTransport
public alt.javax.mail.Transport getTransport(javax.mail.Address address)
- Specified by:
getTransport in interface alt.javax.mail.Session
getTransport
public alt.javax.mail.Transport getTransport(javax.mail.Provider provider)
- Specified by:
getTransport in interface alt.javax.mail.Session
getTransport
public alt.javax.mail.Transport getTransport(javax.mail.URLName url)
- Specified by:
getTransport in interface alt.javax.mail.Session
getStore
public javax.mail.Store getStore()
- Specified by:
getStore in interface alt.javax.mail.Session
getStore
public javax.mail.Store getStore(java.lang.String name)
- Specified by:
getStore in interface alt.javax.mail.Session
getStore
public javax.mail.Store getStore(javax.mail.URLName url)
- Specified by:
getStore in interface alt.javax.mail.Session
getStore
public javax.mail.Store getStore(javax.mail.Provider provider)
- Specified by:
getStore in interface alt.javax.mail.Session
getFolder
public javax.mail.Folder getFolder()
getFolder
public javax.mail.Folder getFolder(javax.mail.Store store)
getFolder
public javax.mail.Folder getFolder(javax.mail.URLName url)
- Specified by:
getFolder in interface alt.javax.mail.Session
setPasswordAuthentication
public void setPasswordAuthentication(javax.mail.URLName url,
javax.mail.PasswordAuthentication passwordAuthentication)
- Specified by:
setPasswordAuthentication in interface alt.javax.mail.Session
getPasswordAuthentication
public javax.mail.PasswordAuthentication getPasswordAuthentication(javax.mail.URLName url)
- Specified by:
getPasswordAuthentication in interface alt.javax.mail.Session
requestPasswordAuthentication
public javax.mail.PasswordAuthentication requestPasswordAuthentication(java.net.InetAddress address,
int port,
java.lang.String protocol,
java.lang.String prompt,
java.lang.String defaultUserName)
- Specified by:
requestPasswordAuthentication in interface alt.javax.mail.Session
getProperties
public java.util.Properties getProperties()
- Specified by:
getProperties in interface alt.javax.mail.Session
getProperty
public java.lang.String getProperty(java.lang.String name)
- Specified by:
getProperty in interface alt.javax.mail.Session
getWrappedSession
public javax.mail.Session getWrappedSession()
- Specified by:
getWrappedSession in interface alt.javax.mail.Session
Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.