Package com.tcs.hrr.junit

Source Code of com.tcs.hrr.junit.Test

/**
*
*/
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");
  }

}
TOP

Related Classes of com.tcs.hrr.junit.Test

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.