Skip to content

Instantly share code, notes, and snippets.

@sebastienblanc
Last active December 10, 2015 22:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebastienblanc/4501764 to your computer and use it in GitHub Desktop.
Save sebastienblanc/4501764 to your computer and use it in GitHub Desktop.
@Test
public void testCreate() throws Exception {
AeroGearUser user = buildUser("john") ;
identityManagement.create(user);
User user1 = new SimpleUser("john");
when(identityManager.getUser(("john"))).thenReturn(user1);
user1 = identityManager.getUser("john");
assertNotNull(user1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment