spring,webwork单元测试

来源:互联网 发布:arttemplate 判断数组 编辑:程序博客网 时间:2024/06/06 14:58

 spring是28版,junit好像是3.8的

 

package com.hebca.std.web.action.statistic;

import org.springframework.test.AbstractDependencyInjectionSpringContextTests;

import com.hebca.std.business.statistic.StatInfuseManager;

public class StatInfuseActionTest extends
        AbstractDependencyInjectionSpringContextTests 
{
    
private StatInfuseManager titleDao;

    
public void setTitleDao(StatInfuseManager titleDao) {
        
this.titleDao = titleDao;
    }


    
protected String[] getConfigLocations() {
        
// TODO Auto-generated method stub
        return new String[]{"classpath:applicationContext-statistic_xj.xml"
                ,
"classpath:applicationContext-resources.xml"
        }
;
    }


    
public void testLoadTitle() throws Exception {
        assertNotNull(
"kk");
    }

}
原创粉丝点击