As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
def insertUser(user:User) = { val user = identityService.newUser(user.id.toString) identityService.saveUser(user) }
<br> @Override<br> protected void initDefaultCommandConfig() {<br> if (defaultCommandConfig == null) {<br> defaultCommandConfig = new CommandConfig().setContextReusePossible(true);<br> }<br> }<br>
<br> try {<br> User secondUser = identityService.newUser("testuser2");<br> if (true)<br> throw new RuntimeException();<br> identityService.saveUser(secondUser);<br> fail("Exception should have been thrown");<br> } catch (RuntimeException re) {<br> } <br><br> assertEquals(0, identityService.createUserQuery().userId("testuser2").count());<br>
identityService.newUser("testuser2");
identityService.saveUser(secondUser);