// Path: src/main/java/com/phn/bookhouse/entity/Admin.java
// public class Admin {
// 	private int admi_id;
// 	private String admi_login_name;
// 	private String admi_login_password;
// 
// 	public int getAdmi_id() {
// 		return admi_id;
// 	}
// 
// 	public void setAdmi_id(int admi_id) {
// 		this.admi_id = admi_id;
// 	}
// 
// 	public String getAdmi_login_name() {
// 		return admi_login_name;
// 	}
// 
// 	public void setAdmi_login_name(String admi_login_name) {
// 		this.admi_login_name = admi_login_name;
// 	}
// 
// 	public String getAdmi_login_password() {
// 		return admi_login_password;
// 	}
// 
// 	public void setAdmi_login_password(String admi_login_password) {
// 		this.admi_login_password = admi_login_password;
// 	}
// 
// }
// 
// Path: src/main/java/com/phn/bookhouse/service/AdminService.java
// public interface AdminService {
// 	public int addAdmin(Admin admin);
// 	public int removeAdminById(int adminid);
// 	public Admin findAdminById(int adminid);
// 	public List<Admin> findAdminByName(String adminname);
// 	public int editAdmin(Admin admin);
// }


import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.phn.bookhouse.entity.Admin;
import com.phn.bookhouse.service.AdminService;
/**
 * 
 */
package com.test.service;




/**
 * @class AdminServiceTest.java
 * @author pan
 * @date 2014年11月12日
 * @email panhainan@yeah.net
 */
public class AdminServiceTest {
	private AdminService adminService;

	@Before
	public void before() {
		@SuppressWarnings("resource")
		ApplicationContext context = new ClassPathXmlApplicationContext(
				new String[] { "classpath:spring.xml",
						"classpath:spring-mybatis.xml" });
		adminService = (AdminService) context.getBean("adminService");
	}

	/**
	 * Test method for
	 * {@link com.phn.bookhouse.service.impl.AdminServiceImpl#insertAdmin(com.phn.bookhouse.entity.Admin)}
	 * .
	 */
	// @Test
	public void testInsertAdmin() {
// Path: src/main/java/com/phn/bookhouse/entity/Admin.java
// public class Admin {
// 	private int admi_id;
// 	private String admi_login_name;
// 	private String admi_login_password;
// 
// 	public int getAdmi_id() {
// 		return admi_id;
// 	}
// 
// 	public void setAdmi_id(int admi_id) {
// 		this.admi_id = admi_id;
// 	}
// 
// 	public String getAdmi_login_name() {
// 		return admi_login_name;
// 	}
// 
// 	public void setAdmi_login_name(String admi_login_name) {
// 		this.admi_login_name = admi_login_name;
// 	}
// 
// 	public String getAdmi_login_password() {
// 		return admi_login_password;
// 	}
// 
// 	public void setAdmi_login_password(String admi_login_password) {
// 		this.admi_login_password = admi_login_password;
// 	}
// 
// }
// 
// Path: src/main/java/com/phn/bookhouse/service/AdminService.java
// public interface AdminService {
// 	public int addAdmin(Admin admin);
// 	public int removeAdminById(int adminid);
// 	public Admin findAdminById(int adminid);
// 	public List<Admin> findAdminByName(String adminname);
// 	public int editAdmin(Admin admin);
// }


// Path: src/test/java/com/test/service/AdminServiceTest.java
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.phn.bookhouse.entity.Admin;
import com.phn.bookhouse.service.AdminService;

/**
 * 
 */
package com.test.service;




/**
 * @class AdminServiceTest.java
 * @author pan
 * @date 2014年11月12日
 * @email panhainan@yeah.net
 */
public class AdminServiceTest {
	private AdminService adminService;

	@Before
	public void before() {
		@SuppressWarnings("resource")
		ApplicationContext context = new ClassPathXmlApplicationContext(
				new String[] { "classpath:spring.xml",
						"classpath:spring-mybatis.xml" });
		adminService = (AdminService) context.getBean("adminService");
	}

	/**
	 * Test method for
	 * {@link com.phn.bookhouse.service.impl.AdminServiceImpl#insertAdmin(com.phn.bookhouse.entity.Admin)}
	 * .
	 */
	// @Test
	public void testInsertAdmin() {
		Admin admin = new Admin();