passwordhintactiontest.java

来自「this is for appfuse1.8 source using stru」· Java 代码 · 共 28 行

JAVA
28
字号
package org.appfuse.webapp.action;import com.dumbster.smtp.SimpleSmtpServer;public class PasswordHintActionTest extends BaseStrutsTestCase {        public PasswordHintActionTest(String name) {        super(name);    }    public void testExecute() throws Exception {        setRequestPathInfo("/passwordHint");        addRequestParameter("username", "tomcat");        SimpleSmtpServer server = SimpleSmtpServer.start(2525);                actionPerform();        // verify an account information e-mail was sent        server.stop();        assertTrue(server.getReceivedEmailSize() == 1);                verifyForward("previousPage");        verifyNoActionErrors();    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?