Skip to content

Commit 7623cd1

Browse files
UFAL/Fixed failing integration test (ufal#1332) (#1249)
* Add debug messages to fauling test (cherry picked from commit 4cc3694) Co-authored-by: Milan Kuchtiak <kuchtiak@ufal.mff.cuni.cz>
1 parent b6729d5 commit 7623cd1

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

dspace-api/src/test/java/org/dspace/workflow/WorkflowCurationIT.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,15 @@
2222
import org.dspace.content.Community;
2323
import org.dspace.content.MetadataValue;
2424
import org.dspace.content.service.ItemService;
25+
import org.dspace.core.LegacyPluginServiceImpl;
2526
import org.dspace.ctask.testing.MarkerTask;
2627
import org.dspace.eperson.EPerson;
2728
import org.dspace.util.DSpaceConfigurationInitializer;
2829
import org.dspace.util.DSpaceKernelInitializer;
2930
import org.dspace.xmlworkflow.storedcomponents.XmlWorkflowItem;
3031
import org.junit.Test;
3132
import org.junit.runner.RunWith;
33+
import org.springframework.beans.factory.annotation.Autowired;
3234
import org.springframework.test.context.ContextConfiguration;
3335
import org.springframework.test.context.junit4.SpringRunner;
3436

@@ -46,6 +48,8 @@ public class WorkflowCurationIT
4648
extends AbstractIntegrationTestWithDatabase {
4749
@Inject
4850
private ItemService itemService;
51+
@Autowired
52+
private LegacyPluginServiceImpl legacyPluginService;
4953

5054
/**
5155
* Basic smoke test of a curation task attached to a workflow step.
@@ -56,6 +60,7 @@ public class WorkflowCurationIT
5660
public void curationTest()
5761
throws Exception {
5862
context.turnOffAuthorisationSystem();
63+
legacyPluginService.clearNamedPluginClasses();
5964

6065
//** GIVEN **
6166

0 commit comments

Comments
 (0)