import org.junit.Test;
import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.mock.web.MockHttpServletResponse;
import org.springframework.web.servlet.ModelAndView;
/**
 * 说明: 测试OrderAction的例子
 * 
 * @author 赵磊
 * @version 创建时间:2011-2-2 下午10:26:55
 */
public class TestOrderAction extends JUnitActionBase {
	@Test
	public void testAdd() throws Exception {
		MockHttpServletRequest request = new MockHttpServletRequest();
		MockHttpServletResponse response = new MockHttpServletResponse();
		request.setRequestURI("/order/add");
		request.addParameter("id", "1002");
		request.addParameter("date", "2010-12-30");
		request.setMethod("GET");
		
		// 执行URI对应的action
		final ModelAndView mav = this.excuteAction(request, response);
		// Assert logic
		//Assert.assertEquals("order/add", mav.getViewName());
		String msg = (String) request.getAttribute("msg");
		System.out.println(msg);
	}
}
最近下载更多
                
                zxhjy5     LV6
                2024年8月6日
            
            
        
                lvhongquan     LV11
                2022年7月10日
            
            
        
                a1677596408     LV23
                2022年7月1日
            
            
        
                zhijian992714     LV6
                2022年2月17日
            
            
        
                admin7777     LV14
                2021年8月19日
            
            
        
                remedy     LV1
                2021年6月17日
            
            
        
                杜老师     LV1
                2021年5月12日
            
            
        
                aaaahao     LV13
                2021年3月20日
            
            
        
                erwesdfe     LV2
                2021年3月2日
            
            
        
                wx1992926     LV2
                2021年1月22日
            
            
        
最近浏览更多
                
                15719908287     LV10
                2024年8月28日
            
            
        
                dapeng0011     LV15
                2024年7月16日
            
            
        
                lymit1024     LV4
                2024年6月24日
            
            
        
                xzg123456     LV6
                2024年6月19日
            
            
        
                张真狗     LV9
                2023年5月22日
            
            
        
                花落亦知秋    
                2023年5月22日
            
            
                    暂无贡献等级
            
        
                2237851964     LV1
                2023年2月26日
            
            
        
                LITIANYU084414     LV11
                2023年1月1日
            
            
        
                南山难     LV4
                2023年1月1日
            
            
        
                43093307     LV4
                2022年12月16日
            
            
        
                
                
                