Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Test
- public void submitAndCreateAccount() throws Exception {
- EasyMock.expect(mockAccountService.createAccount(userEditing))
- .andReturn(UserOM.newUser());
- EnhancedFormTester formTester = tester.newFormTester("accountForm");
- formTester.setValue("username", "Tony Stark");
- formTester.setValue("email", "tonystark@stark.com");
- formTester.setValue("rawPassword", "pwd123");
- formTester.setValue("confirmRawPassword", "pwd123");
- control.replay();
- formTester.submit();
- control.verify();
- tester.assertRenderedPage(FinishCreateAccountPage.class);
- }
Add Comment
Please, Sign In to add comment