Пример #1
0
 public void orderTest3() {
   Customer customer = customerDAO.getCustomerById(2);
   List list = orderService.getOrdersByUsername(customer.getUsername());
   System.out.println("List size :" + list.size());
   for (Object obj : list) {
     System.out.println(obj);
   }
 }
Пример #2
0
 public void testGetCustomerById() {
   List list = (List) customerDAO.getCustomerById(1);
   Customer cus = (Customer) list.get(0);
   assertEquals("赵小明", cus.getUsername());
 }