Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-marechal committed Mar 4, 2024
1 parent 64b943f commit 3c02760
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ public class CacheServiceTest {
@Autowired
RepositoryService repositories;

@Autowired
AuthUserFactory authUserFactory;

@Test
@Transactional
public void testGetExtension() {
Expand Down Expand Up @@ -124,7 +127,6 @@ public void testUpdateExistingUser() {

var user = extVersion.getPublishedWith().getUser();
var oauthUser = new DefaultOAuth2User(authorities, attributes, "name");
var authUserFactory = new AuthUserFactory();
var authUser = authUserFactory.createAuthUser(authority, oauthUser);
users.updateExistingUser(user, authUser);
assertNull(cache.getCache(CACHE_EXTENSION_JSON).get(cacheKey, ExtensionJson.class));
Expand Down

0 comments on commit 3c02760

Please sign in to comment.