Class LocalMailServiceTestConfig
java.lang.Object
com.google.appengine.tools.development.testing.LocalMailServiceTestConfig
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic LocalMailServicesetLogMailBody(boolean logMailBody) Controls whether or not the message body is logged.setLogMailLevel(Level logMailLevel) Controls the level at which each message is logged.voidsetUp()Set up the local service.voidtearDown()Tear down the local service.
-
Constructor Details
-
LocalMailServiceTestConfig
public LocalMailServiceTestConfig()
-
-
Method Details
-
setUp
public void setUp()Description copied from interface:LocalServiceTestConfigSet up the local service.- Specified by:
setUpin interfaceLocalServiceTestConfig
-
tearDown
public void tearDown()Description copied from interface:LocalServiceTestConfigTear down the local service.- Specified by:
tearDownin interfaceLocalServiceTestConfig
-
getLogMailBody
-
setLogMailBody
Controls whether or not the message body is logged.- Parameters:
logMailBody-- Returns:
this(for chaining)
-
getLogMailLevel
-
setLogMailLevel
Controls the level at which each message is logged.- Parameters:
logMailLevel-- Returns:
this(for chaining)
-
getLocalMailService
-