天天看點

junit的demo

package test; 


import com.channelsoft.cms.common.po.DataSyncLogPo; 

import com.channelsoft.cms.log.service.IDataSyncLogService; 


import junit.framework.TestCase; 


public class test extends TestCase { 


// public static void main(String[] args){ 

// 

// } 


 public void testOne(){ 

 IDataSyncLogService sph = (IDataSyncLogService)BeanFactory.getBean("dataSyncLogService"); 

 DataSyncLogPo po = new DataSyncLogPo(); 

 po.setCorrelatId("123321"); 

// 

 sph.insert(po); 

 } 


}