mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 18:14:26 +00:00
Change class name to ContextIT and correct a test
(cherry picked from commit a5567992bb
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
ddbba2d125
commit
6c211ac19c
@@ -18,7 +18,7 @@ import org.dspace.authorize.service.AuthorizeService;
|
||||
import org.dspace.builder.CommunityBuilder;
|
||||
import org.junit.Test;
|
||||
|
||||
public class ContextModeIT extends AbstractIntegrationTestWithDatabase {
|
||||
public class ContextIT extends AbstractIntegrationTestWithDatabase {
|
||||
|
||||
AuthorizeService authorizeService = AuthorizeServiceFactory.getInstance().getAuthorizeService();
|
||||
|
||||
@@ -26,6 +26,11 @@ public class ContextModeIT extends AbstractIntegrationTestWithDatabase {
|
||||
public void testGetPoliciesNewCommunityAfterReadOnlyModeChange() throws Exception {
|
||||
|
||||
context.turnOffAuthorisationSystem();
|
||||
|
||||
// First disable the index consumer. The indexing process calls the authorizeService
|
||||
// function used in this test and may affect the test
|
||||
context.setDispatcher("noindex");
|
||||
|
||||
parentCommunity = CommunityBuilder.createCommunity(context)
|
||||
.withName("Parent Community")
|
||||
.build();
|
Reference in New Issue
Block a user