| com.ecyrd.jspwiki.util.MailUtilTest
MailUtilTest | public class MailUtilTest extends TestCase (Code) | | This test is not integrated into any TestSuite yet, because I don't know how
to really assert if a mail was sent etc. (setup would be to complicated yet). Therefore
replace the static TEST variables with your configuration and test by hand: execute
testSendMail and see if you get the mail at the adress you indicate in "TEST_RECEIVER".
author: Christoph Sauer |
Method Summary | |
public void | setUp() | public static Test | suite() | public void | tearDown() | public void | testProperties() Verifies that the properties loaded by tests/etc/jspwiki.properties are the ones we expect. | public void | testSendMail() This test sends a message to the local user's mailbox on this host. |
suite | public static Test suite()(Code) | | |
tearDown | public void tearDown()(Code) | | |
testProperties | public void testProperties()(Code) | | Verifies that the properties loaded by tests/etc/jspwiki.properties are the ones we expect.
Three of them (account, password, jndi name) are commented out, so we expect null.
|
testSendMail | public void testSendMail()(Code) | | This test sends a message to the local user's mailbox on this host. It assumes that
there is a locally-listening SMTP server on port 25, and that the current runtime
user has a mailbox on the local machine. For Unix-based systems such as Linux and
OS X, you can verify that this test ran successfully simply by typing "mail" at
the command line.
|
|
|