Skip to content

Commit

Permalink
Merge pull request DSpace#9297 from DSpace/backport-9293-to-dspace-7_x
Browse files Browse the repository at this point in the history
[Port dspace-7_x] Call cas.init() method in the VocabularyRestRepositoryIT#setup method
  • Loading branch information
tdonohue authored Jan 29, 2024
2 parents 5f7af6b + 2549663 commit f467425
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ public void setup() throws Exception {
// the properties that we're altering above and this is only used within the tests
DCInputAuthority.reset();
pluginService.clearNamedPluginClasses();

// The following line is needed to call init() method in the ChoiceAuthorityServiceImpl class, without it
// the `submissionConfigService` will be null what will cause a NPE in the clearCache() method
// https://github.com/DSpace/DSpace/issues/9292
cas.getChoiceAuthoritiesNames();
cas.clearCache();

context.turnOffAuthorisationSystem();
Expand Down

0 comments on commit f467425

Please sign in to comment.