Skip to content

Commit

Permalink
Change class name to ContextIT and correct a test
Browse files Browse the repository at this point in the history
  • Loading branch information
toniprieto committed Oct 27, 2023
1 parent d19a959 commit a556799
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,19 @@
import org.dspace.builder.CommunityBuilder;
import org.junit.Test;

public class ContextModeIT extends AbstractIntegrationTestWithDatabase {
public class ContextIT extends AbstractIntegrationTestWithDatabase {

AuthorizeService authorizeService = AuthorizeServiceFactory.getInstance().getAuthorizeService();

@Test
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();
Expand Down

0 comments on commit a556799

Please sign in to comment.