JUNIT
来源:互联网 发布:sql server dba 认证 编辑:程序博客网 时间:2024/04/20 10:42
/**
*
*/
package jp.co.daiwasmbc.netkisai.starttimeinput.action;
import servletunit.struts.MockStrutsTestCase;
/**
* @author ADMIN
*
*/
public class TestStartTimeInputAction extends MockStrutsTestCase {
public TestStartTimeInputAction(String testName) {
super(testName);
}
public void setUp() throws Exception {
super.setUp();
}
public void testSuccessfulLogin() {
addRequestParameter("stockid","1");
addRequestParameter("demandPeriodTime","09:30");
setRequestPathInfo("/login");
actionPerform();
verifyForward("success");
verifyForwardPath("/WEB-INF/pages/Daiwa/proconinput/StartTimeInput.jsp");
assertTrue(true);
verifyNoActionErrors();
}
public void testFailedLogin() {
}
public static void main(String[] args) {
junit.textui.TestRunner.run(TestStartTimeInputAction.class);
}
}
<action path="/Daiwa/starttimeinput"
type="jp.co.daiwasmbc.netkisai.starttimeinput.action.StartTimeInputAction"
scope="session"
name="startTimeInputFrom"
validate="false">
<forward name="success" path="/WEB-INF/pages/Daiwa/proconinput/StartTimeInput.jsp" />
</action>
<action path="/Daiwa/StartTimeUpdate"
type="jp.co.daiwasmbc.netkisai.starttimeinput.action.StartTimeUpdateAction"
scope="request"
name="startTimeInputFrom"
validate="false">
<forward name="success" path="/Daiwa/starttimeinput.do" />
</action>
- JUNIT
- junit
- Junit
- JUnit
- JUnit
- JUnit
- JUNIT
- junit
- Junit
- JUnit
- Junit
- JUnit
- Junit
- Junit
- JUnit
- junit
- junit
- JUnit
- java.sql.date 与 java.util.date
- LOG4CPP &amp; C++实现日志(-)
- 二叉树的递归遍历与非递归遍历
- 使用VC++生成调试信息
- 网页或文件加载Loading进度条效果之二
- JUNIT
- 网页或文件加载Loading进度条效果之一
- vim使用心得和常用操作命令
- wchar_t与char转换
- SVN使用技巧
- 通过串口收发短消息
- 没有源码的页面
- Spring中受管Bean作用范围
- 熟悉Tortoise SVN 客户端 基本用法