Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * @see {@link FormService#saveForm(Form)}}
- *
- * @throws FormsLockedException
- */
- @Test(expected = FormsLockedException.class)
- @Verifies(method = "saveForm(Form)", value = "should throw an error when trying to save an existing form while forms are locked")
- public void shouldThrowAnErrorWhenTryingToSaveAnExistingFormWhileFormsAreLocked() throws Exception {
- FormService fs = Context.getFormService();
- Form form = fs.getForm(1);
- form.setName("new basic formName");
- fs.saveForm(form);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement