Merge pull request #9297 from DSpace/backport-9293-to-dspace-7_x

[Port dspace-7_x] Call cas.init() method in the VocabularyRestRepositoryIT#setup method
This commit is contained in:
Tim Donohue
2024-01-29 12:19:04 -06:00
committed by GitHub

View File

@@ -92,6 +92,11 @@ public class VocabularyRestRepositoryIT extends AbstractControllerIntegrationTes
// 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();