@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()); } }
@Test public void testupdateCustomerServices() throws Exception { oi = new OrderInfoDAO(); String returnValue1 = (String) oi.updateCustomerServices("2", "1", "Suspended"); assertEquals("updated successfully", returnValue1); }