@Test public void testFindByUserName() { ApplicationUser userFound = repository.findByUserName("srt"); logger.debug("userFound : " + userFound.toString()); assertNotNull(userFound); }
@Test public void testSaveApplicationUser() { ApplicationUser user = new ApplicationUser("testUser", "password"); ApplicationUser userFound = repository.save(user); logger.debug("userId : " + userFound.getId()); assertNotNull(userFound.getId()); }