// Path: src/com/easyhousing/dao/OrderBuildingDao.java
// public interface OrderBuildingDao {
// 	public void insertOrderBuilding(OrderBuilding u);
// 	public int deleteOrderBuilding(OrderBuilding u);
// 	public int updateOrderBuilding(OrderBuilding u);
// 	public OrderBuilding selectOrderBuilding(OrderBuilding u);
// 	public List<OrderBuilding> selectAllByUserId(OrderBuilding u);
// }
// 
// Path: src/com/easyhousing/model/OrderBuilding.java
// public class OrderBuilding {
// 	private int agentId;
// 	private int orderId;
// 	private Date orderTime;
// 	private int buildingId;
// 	private int userId;
// 	private String orderStatus;
// 	private String userPhoneNumber;
// 	public int getAgentId() {
// 		return agentId;
// 	}
// 	public void setAgentId(int agentId) {
// 		this.agentId = agentId;
// 	}
// 	public int getOrderId() {
// 		return orderId;
// 	}
// 	public void setOrderId(int orderId) {
// 		this.orderId = orderId;
// 	}
// 	public Date getOrderTime() {
// 		return orderTime;
// 	}
// 	public void setOrderTime(Date orderTime) {
// 		this.orderTime = orderTime;
// 	}
// 	public int getBuildingId() {
// 		return buildingId;
// 	}
// 	public void setBuildingId(int buildingId) {
// 		this.buildingId = buildingId;
// 	}
// 	public int getUserId() {
// 		return userId;
// 	}
// 	public void setUserId(int userId) {
// 		this.userId = userId;
// 	}
// 	public String getOrderStatus() {
// 		return orderStatus;
// 	}
// 	public void setOrderStatus(String orderStatus) {
// 		this.orderStatus = orderStatus;
// 	}
// 	public String getUserPhoneNumber() {
// 		return userPhoneNumber;
// 	}
// 	public void setUserPhoneNumber(String userPhoneNumber) {
// 		this.userPhoneNumber = userPhoneNumber;
// 	}
// 	
// }


import java.util.Date;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.easyhousing.dao.OrderBuildingDao;
import com.easyhousing.model.OrderBuilding;
package com.easyhousing.test;




public class OrderBuildingTest {
	@Test
	public void insert() {
		ApplicationContext ac = new ClassPathXmlApplicationContext("bean.xml");
		OrderBuildingDao dao = (OrderBuildingDao) ac.getBean("orderBuildingDao");
		OrderBuilding c = new OrderBuilding();
		c.setAgentId(1);
		c.setBuildingId(1);
		c.setOrderStatus("Î´´¦Àí");
		c.setOrderTime(new Date());
		c.setUserId(1);
		c.setUserPhoneNumber("18059xxxxxx");
		dao.insertOrderBuilding(c);
	}
	
	@Test
	public void delete() {
		ApplicationContext ac = new ClassPathXmlApplicationContext("bean.xml");
// Path: src/com/easyhousing/dao/OrderBuildingDao.java
// public interface OrderBuildingDao {
// 	public void insertOrderBuilding(OrderBuilding u);
// 	public int deleteOrderBuilding(OrderBuilding u);
// 	public int updateOrderBuilding(OrderBuilding u);
// 	public OrderBuilding selectOrderBuilding(OrderBuilding u);
// 	public List<OrderBuilding> selectAllByUserId(OrderBuilding u);
// }
// 
// Path: src/com/easyhousing/model/OrderBuilding.java
// public class OrderBuilding {
// 	private int agentId;
// 	private int orderId;
// 	private Date orderTime;
// 	private int buildingId;
// 	private int userId;
// 	private String orderStatus;
// 	private String userPhoneNumber;
// 	public int getAgentId() {
// 		return agentId;
// 	}
// 	public void setAgentId(int agentId) {
// 		this.agentId = agentId;
// 	}
// 	public int getOrderId() {
// 		return orderId;
// 	}
// 	public void setOrderId(int orderId) {
// 		this.orderId = orderId;
// 	}
// 	public Date getOrderTime() {
// 		return orderTime;
// 	}
// 	public void setOrderTime(Date orderTime) {
// 		this.orderTime = orderTime;
// 	}
// 	public int getBuildingId() {
// 		return buildingId;
// 	}
// 	public void setBuildingId(int buildingId) {
// 		this.buildingId = buildingId;
// 	}
// 	public int getUserId() {
// 		return userId;
// 	}
// 	public void setUserId(int userId) {
// 		this.userId = userId;
// 	}
// 	public String getOrderStatus() {
// 		return orderStatus;
// 	}
// 	public void setOrderStatus(String orderStatus) {
// 		this.orderStatus = orderStatus;
// 	}
// 	public String getUserPhoneNumber() {
// 		return userPhoneNumber;
// 	}
// 	public void setUserPhoneNumber(String userPhoneNumber) {
// 		this.userPhoneNumber = userPhoneNumber;
// 	}
// 	
// }


// Path: src/com/easyhousing/test/OrderBuildingTest.java
import java.util.Date;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.easyhousing.dao.OrderBuildingDao;
import com.easyhousing.model.OrderBuilding;

package com.easyhousing.test;




public class OrderBuildingTest {
	@Test
	public void insert() {
		ApplicationContext ac = new ClassPathXmlApplicationContext("bean.xml");
		OrderBuildingDao dao = (OrderBuildingDao) ac.getBean("orderBuildingDao");
		OrderBuilding c = new OrderBuilding();
		c.setAgentId(1);
		c.setBuildingId(1);
		c.setOrderStatus("Î´´¦Àí");
		c.setOrderTime(new Date());
		c.setUserId(1);
		c.setUserPhoneNumber("18059xxxxxx");
		dao.insertOrderBuilding(c);
	}
	
	@Test
	public void delete() {
		ApplicationContext ac = new ClassPathXmlApplicationContext("bean.xml");
		OrderBuildingDao dao = (OrderBuildingDao) ac.getBean("orderBuildingDao");