com.google.appengine.tools.development.testing
Class LocalMailServiceTestConfig
- java.lang.Object
-
- com.google.appengine.tools.development.testing.LocalMailServiceTestConfig
-
- All Implemented Interfaces:
- LocalServiceTestConfig
public class LocalMailServiceTestConfig extends java.lang.Object implements LocalServiceTestConfig
Config for accessing the local mail service in tests.tearDown()
wipes out sent messages so that there is no state passed between tests.
-
-
Constructor Summary
Constructors Constructor and Description LocalMailServiceTestConfig()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static LocalMailService
getLocalMailService()
java.lang.Boolean
getLogMailBody()
java.util.logging.Level
getLogMailLevel()
LocalMailServiceTestConfig
setLogMailBody(boolean logMailBody)
Controls whether or not the message body is logged.LocalMailServiceTestConfig
setLogMailLevel(java.util.logging.Level logMailLevel)
Controls the level at which each message is logged.void
setUp()
Set up the local service.void
tearDown()
Tear down the local service.
-
-
-
Method Detail
-
setUp
public void setUp()
Description copied from interface:LocalServiceTestConfig
Set up the local service.- Specified by:
setUp
in interfaceLocalServiceTestConfig
-
tearDown
public void tearDown()
Description copied from interface:LocalServiceTestConfig
Tear down the local service.- Specified by:
tearDown
in interfaceLocalServiceTestConfig
-
getLogMailBody
public java.lang.Boolean getLogMailBody()
-
setLogMailBody
public LocalMailServiceTestConfig setLogMailBody(boolean logMailBody)
Controls whether or not the message body is logged.- Parameters:
logMailBody
-- Returns:
this
(for chaining)
-
getLogMailLevel
public java.util.logging.Level getLogMailLevel()
-
setLogMailLevel
public LocalMailServiceTestConfig setLogMailLevel(java.util.logging.Level logMailLevel)
Controls the level at which each message is logged.- Parameters:
logMailLevel
-- Returns:
this
(for chaining)
-
getLocalMailService
public static LocalMailService getLocalMailService()
-
-