Advertisement
Guest User

Untitled

a guest
Feb 18th, 2014
10
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. /**
  2. * @see {@link FormService#saveForm(Form)}}
  3. *
  4. * @throws FormsLockedException
  5. */
  6. @Test(expected = FormsLockedException.class)
  7. @Verifies(method = "saveForm(Form)", value = "should throw an error when trying to save an existing form while forms are locked")
  8. public void shouldThrowAnErrorWhenTryingToSaveAnExistingFormWhileFormsAreLocked() throws Exception {
  9. FormService fs = Context.getFormService();
  10.  
  11. Form form = fs.getForm(1);
  12. form.setName("new basic formName");
  13.  
  14. fs.saveForm(form);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement