All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.jUnitTest.tmpl Maven / Gradle / Ivy

Go to download

Assist in generating CRUD code, without limitation on the specific language, as long as you can write velocity templates.

There is a newer version: 1.0.8
Show newest version
/**
 * @author: ${author}
 * @version: 1.0
 * @since ${date}
 */

package ${packagePrefix}.test;


import ims.common.util.ParamUtil;
import ims.common.util.ServiceUtil;
import ims.sys.util.OnlineUser;

import ims.common.test.ImsJunit4Test;
import javax.annotation.Resource;
import org.junit.Test;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.transaction.TransactionConfiguration;


import ${packagePrefix}.service.${className}Manager;
import ${packagePrefix}.model.${className};
#if($pkResult.size()>1)
import ${packagePrefix}.model.${className}PK;
#end


import java.sql.Date;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@ContextConfiguration(
		locations={"/testcontext/context-app-**.xml"
				}
) 
@TransactionConfiguration(defaultRollback = false)
public class ${className}Test extends ImsJunit4Test {
	private transient final Log log = LogFactory.getLog(getClass());

	@Resource (columnName="${classVar}Manager")
	private ${className}Manager ${classVar}Manager; 
	/**
	 * ��ȡһ����¼��Ϣ���������޸IJ���
	 */
	@Test
	public void testSave${className}() {

		System.out.println("=======================");
		System.out.println("======================="+${classVar}Manager);

	}


	
}







© 2015 - 2025 Weber Informatics LLC | Privacy Policy