/** Update a Basket and check if the update was successful */ public void testUpdate() { Basket_up.setPath(BasketPath); TUpdate_Return[] Baskets_update_out = basketService.update(new TUpdate_Input[] {Basket_up}); assertNoError(Baskets_update_out[0].getError()); assertNull("No FormErrors", Baskets_update_out[0].getFormErrors()); assertTrue("updated?", Baskets_update_out[0].getUpdated()); }
/** Update a Basket with a billing address and check if the update was successful */ public void testUpdateWithFormError() { Basket_up.setPath(BasketPath); TUpdate_Return[] Baskets_update_out = basketService.update(new TUpdate_Input[] {Basket_up}); Baskets_update_out[0].setFormErrors(new TFormError[] {new TFormError()}); assertEquals("updateWithFormError resultset", Baskets_update_out[0].getFormErrors().length, 1); }