Skip to content

Commit

Permalink
Merge pull request #501 from dataquest-dev/internal/fix_failing_vocab…
Browse files Browse the repository at this point in the history
…uralyit

Internal/fix failing vocaburalyit
  • Loading branch information
vidiecan authored Jan 31, 2024
2 parents 0322cc2 + 0b3cb36 commit 93978f8
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 93978f8

Please sign in to comment.