mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-12 04:23:13 +00:00
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:
@@ -92,6 +92,11 @@ public class VocabularyRestRepositoryIT extends AbstractControllerIntegrationTes
|
|||||||
// the properties that we're altering above and this is only used within the tests
|
// the properties that we're altering above and this is only used within the tests
|
||||||
DCInputAuthority.reset();
|
DCInputAuthority.reset();
|
||||||
pluginService.clearNamedPluginClasses();
|
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();
|
cas.clearCache();
|
||||||
|
|
||||||
context.turnOffAuthorisationSystem();
|
context.turnOffAuthorisationSystem();
|
||||||
|
Reference in New Issue
Block a user