From 9ebbb89eb06d7103b40fc03f7e583bf243f4a740 Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Fri, 14 Feb 2020 12:11:15 +0100 Subject: [PATCH] Fixed test --- .../dataharvest/AccountingDataHarvesterPluginTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/org/gcube/dataharvest/AccountingDataHarvesterPluginTest.java b/src/test/java/org/gcube/dataharvest/AccountingDataHarvesterPluginTest.java index 2b050ab..4959dbf 100644 --- a/src/test/java/org/gcube/dataharvest/AccountingDataHarvesterPluginTest.java +++ b/src/test/java/org/gcube/dataharvest/AccountingDataHarvesterPluginTest.java @@ -40,6 +40,7 @@ import org.gcube.vremanagement.executor.api.types.Scheduling; import org.gcube.vremanagement.executor.client.SmartExecutorClient; import org.gcube.vremanagement.executor.client.SmartExecutorClientFactory; import org.junit.Assert; +import org.junit.Test; import org.quartz.CronExpression; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -562,7 +563,6 @@ public class AccountingDataHarvesterPluginTest extends ContextTest { } protected AccountingDao getAccountingDao() throws ObjectNotFound, Exception { - ContextTest.setContextByName(ROOT); AccountingDao dao = AccountingDao.get(); Set scopeDescriptorSet = dao.getContexts(); @@ -730,11 +730,11 @@ public class AccountingDataHarvesterPluginTest extends ContextTest { } } - // @Test + @Test public void testCatalogueHarvester() { try { - String context = "/gcube"; + String context = ROOT; //"/gcube"; ContextTest.setContextByName(context); AccountingDao dao = getAccountingDao();