Exemplo n.º 1
0
 @Test
 public void testInsertOrder() throws Exception {
   try {
     oi = new OrderInfoDAO();
     int returnValue1 = oi.insertOrderInfo("4", "1", "Suspend", "PR");
     assertEquals(returnValue1, 1);
   } catch (SQLException e) {
     fail("Failed" + e.getMessage());
   }
 }
Exemplo n.º 2
0
 @Test
 public void testupdateCustomerServices() throws Exception {
   oi = new OrderInfoDAO();
   String returnValue1 = (String) oi.updateCustomerServices("2", "1", "Suspended");
   assertEquals("updated successfully", returnValue1);
 }