/**
*
*/
package com.tcs.hrr.junit;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.tcs.hrr.dao.UserDAO;
import com.tcs.hrr.domain.User;
/**
* @author 810947
*
*/
public class Test {
/**
* @param args
*/
public static void main(String[] args) {
System.out.println("test Start");
ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext-dao.xml");
System.out.println("Start to insert ...");
UserDAO ud = (UserDAO)ctx.getBean("userDAO");
User t_User = new User("User","Password");
ud.save(t_User);
System.out.println("test End");
}
}