@Test
public void placeOrder() {
// TODO Auto-generated method stub
OrderDTO result = new OrderDTO();
EventDTO event = new EventDTO();
CustomerDTO customer = new CustomerDTO();
AddressDTO shipaddress = new AddressDTO();
AddressDTO billaddress = new AddressDTO();
int quantity=1;
event.setid(new Long(1));
customer.setid(new Long(10));
shipaddress.setid(new Long(7));
billaddress.setid(new Long(7));
result = _theOrderManager.placeOrder(event, customer, shipaddress, billaddress, quantity);
Assert.assertTrue("Place order:",result.getReturncode() == 0);
quantity=2;
event.setid(new Long(2));
customer.setid(new Long(10));
shipaddress.setid(new Long(7));
billaddress.setid(new Long(7));
result = _theOrderManager.placeOrder(event, customer, shipaddress, billaddress, quantity);
Assert.assertTrue("No tickets left:",result.getReturncode() != 0);
}