use of io.github.zutherb.appstash.shop.service.user.model.RoleInfo in project the-app by devops-dojo.
the class UserServiceImplTest method testFindByUsername.
@Test
@Ignore
public void testFindByUsername() {
mongoOperations.dropCollection(User.class);
userService.save(new UserInfo("found", "securepw", Collections.<RoleInfo>emptySet(), new AddressInfo("", "", "", "", "", "", "", "", 0, 0)));
UserInfo userInfo = userService.findByUsername("found");
assertNotNull(userInfo);
UserInfo notFound = userService.findByUsername("not-found");
assertNull(notFound);
}
Aggregations