|
|
|
@ -96,10 +96,7 @@ public class AccountingDataHarvesterPluginTest extends ContextTest {
|
|
|
|
|
|
|
|
|
|
ContextTest.setContextByName(ROOT);
|
|
|
|
|
|
|
|
|
|
AccountingDashboardHarvesterPluginDeclaration dataHarvestPluginDeclaration = new AccountingDashboardHarvesterPluginDeclaration();
|
|
|
|
|
|
|
|
|
|
AccountingDashboardHarvesterPlugin accountingDataHarvesterPlugin = new AccountingDashboardHarvesterPlugin(
|
|
|
|
|
dataHarvestPluginDeclaration);
|
|
|
|
|
AccountingDashboardHarvesterPlugin accountingDataHarvesterPlugin = new AccountingDashboardHarvesterPlugin();
|
|
|
|
|
|
|
|
|
|
Map<String,Object> inputs = new HashMap<>();
|
|
|
|
|
|
|
|
|
@ -133,7 +130,9 @@ public class AccountingDataHarvesterPluginTest extends ContextTest {
|
|
|
|
|
|
|
|
|
|
ContextTest.setContextByName(ROOT);
|
|
|
|
|
|
|
|
|
|
SmartExecutorClient smartExecutor = SmartExecutorClientFactory.getClient(AccountingDashboardHarvesterPluginDeclaration.NAME);
|
|
|
|
|
String pluginName = new AccountingDashboardHarvesterPlugin().getName();
|
|
|
|
|
|
|
|
|
|
SmartExecutorClient smartExecutor = SmartExecutorClientFactory.getClient(pluginName);
|
|
|
|
|
Assert.assertNotNull(smartExecutor);
|
|
|
|
|
|
|
|
|
|
Map<String,Object> inputs = new HashMap<>();
|
|
|
|
@ -161,9 +160,8 @@ public class AccountingDataHarvesterPluginTest extends ContextTest {
|
|
|
|
|
|
|
|
|
|
Scheduling scheduling = new Scheduling(cronExpression);
|
|
|
|
|
scheduling.setGlobal(false);
|
|
|
|
|
LaunchParameter launchParameter = new LaunchParameter(AccountingDashboardHarvesterPluginDeclaration.NAME, inputs,
|
|
|
|
|
scheduling);
|
|
|
|
|
//LaunchParameter launchParameter = new LaunchParameter(AccountingDashboardHarvesterPluginDeclaration.NAME, inputs);
|
|
|
|
|
LaunchParameter launchParameter = new LaunchParameter(pluginName, inputs, scheduling);
|
|
|
|
|
//LaunchParameter launchParameter = new LaunchParameter(pluginName, inputs);
|
|
|
|
|
|
|
|
|
|
smartExecutor.launch(launchParameter);
|
|
|
|
|
|
|
|
|
@ -180,10 +178,7 @@ public class AccountingDataHarvesterPluginTest extends ContextTest {
|
|
|
|
|
|
|
|
|
|
ContextTest.setContextByName(ROOT);
|
|
|
|
|
|
|
|
|
|
AccountingDashboardHarvesterPluginDeclaration dataHarvestPluginDeclaration = new AccountingDashboardHarvesterPluginDeclaration();
|
|
|
|
|
|
|
|
|
|
AccountingDashboardHarvesterPlugin accountingDataHarvesterPlugin = new AccountingDashboardHarvesterPlugin(
|
|
|
|
|
dataHarvestPluginDeclaration);
|
|
|
|
|
AccountingDashboardHarvesterPlugin accountingDataHarvesterPlugin = new AccountingDashboardHarvesterPlugin();
|
|
|
|
|
|
|
|
|
|
Map<String,Object> inputs = new HashMap<>();
|
|
|
|
|
|
|
|
|
@ -220,10 +215,7 @@ public class AccountingDataHarvesterPluginTest extends ContextTest {
|
|
|
|
|
ContextTest.setContextByName(ROOT);
|
|
|
|
|
// AccountingDao dao = AccountingDao.get();
|
|
|
|
|
|
|
|
|
|
AccountingDashboardHarvesterPluginDeclaration dataHarvestPluginDeclaration = new AccountingDashboardHarvesterPluginDeclaration();
|
|
|
|
|
|
|
|
|
|
AccountingDashboardHarvesterPlugin accountingDataHarvesterPlugin = new AccountingDashboardHarvesterPlugin(
|
|
|
|
|
dataHarvestPluginDeclaration);
|
|
|
|
|
AccountingDashboardHarvesterPlugin accountingDataHarvesterPlugin = new AccountingDashboardHarvesterPlugin();
|
|
|
|
|
Properties properties = accountingDataHarvesterPlugin.getConfigParameters();
|
|
|
|
|
AccountingDashboardHarvesterPlugin.getProperties().set(properties);
|
|
|
|
|
|
|
|
|
@ -423,7 +415,7 @@ public class AccountingDataHarvesterPluginTest extends ContextTest {
|
|
|
|
|
Date start = DateUtils.getPreviousPeriod(measureType, false).getTime();
|
|
|
|
|
Date end = DateUtils.getEndDateFromStartDate(measureType, start, 1, false);
|
|
|
|
|
|
|
|
|
|
AccountingDashboardHarvesterPlugin accountingDataHarvesterPlugin = new AccountingDashboardHarvesterPlugin(null);
|
|
|
|
|
AccountingDashboardHarvesterPlugin accountingDataHarvesterPlugin = new AccountingDashboardHarvesterPlugin();
|
|
|
|
|
accountingDataHarvesterPlugin.getConfigParameters();
|
|
|
|
|
|
|
|
|
|
ContextAuthorization contextAuthorization = new ContextAuthorization();
|
|
|
|
@ -491,10 +483,7 @@ public class AccountingDataHarvesterPluginTest extends ContextTest {
|
|
|
|
|
ContextTest.setContextByName(ROOT);
|
|
|
|
|
// AccountingDao dao = AccountingDao.get();
|
|
|
|
|
|
|
|
|
|
AccountingDashboardHarvesterPluginDeclaration dataHarvestPluginDeclaration = new AccountingDashboardHarvesterPluginDeclaration();
|
|
|
|
|
|
|
|
|
|
AccountingDashboardHarvesterPlugin accountingDataHarvesterPlugin = new AccountingDashboardHarvesterPlugin(
|
|
|
|
|
dataHarvestPluginDeclaration);
|
|
|
|
|
AccountingDashboardHarvesterPlugin accountingDataHarvesterPlugin = new AccountingDashboardHarvesterPlugin();
|
|
|
|
|
Properties properties = accountingDataHarvesterPlugin.getConfigParameters();
|
|
|
|
|
AccountingDashboardHarvesterPlugin.getProperties().set(properties);
|
|
|
|
|
|
|
|
|
@ -649,9 +638,7 @@ public class AccountingDataHarvesterPluginTest extends ContextTest {
|
|
|
|
|
try {
|
|
|
|
|
ContextTest.setContextByName(ROOT);
|
|
|
|
|
|
|
|
|
|
AccountingDashboardHarvesterPluginDeclaration dataHarvestPluginDeclaration = new AccountingDashboardHarvesterPluginDeclaration();
|
|
|
|
|
AccountingDashboardHarvesterPlugin accountingDataHarvesterPlugin = new AccountingDashboardHarvesterPlugin(
|
|
|
|
|
dataHarvestPluginDeclaration);
|
|
|
|
|
AccountingDashboardHarvesterPlugin accountingDataHarvesterPlugin = new AccountingDashboardHarvesterPlugin();
|
|
|
|
|
Properties properties = accountingDataHarvesterPlugin.getConfigParameters();
|
|
|
|
|
AccountingDashboardHarvesterPlugin.getProperties().set(properties);
|
|
|
|
|
|
|
|
|
@ -693,7 +680,7 @@ public class AccountingDataHarvesterPluginTest extends ContextTest {
|
|
|
|
|
|
|
|
|
|
SortedSet<String> contexts = getContexts();
|
|
|
|
|
|
|
|
|
|
AccountingDashboardHarvesterPlugin accountingDataHarvesterPlugin = new AccountingDashboardHarvesterPlugin(null);
|
|
|
|
|
AccountingDashboardHarvesterPlugin accountingDataHarvesterPlugin = new AccountingDashboardHarvesterPlugin();
|
|
|
|
|
accountingDataHarvesterPlugin.getConfigParameters();
|
|
|
|
|
|
|
|
|
|
ResourceCatalogueHarvester resourceCatalogueHarvester = new ResourceCatalogueHarvester(start, end,
|
|
|
|
@ -722,7 +709,7 @@ public class AccountingDataHarvesterPluginTest extends ContextTest {
|
|
|
|
|
Date start = DateUtils.getPreviousPeriod(measureType, false).getTime();
|
|
|
|
|
Date end = DateUtils.getEndDateFromStartDate(measureType, start, 1, false);
|
|
|
|
|
|
|
|
|
|
AccountingDashboardHarvesterPlugin accountingDataHarvesterPlugin = new AccountingDashboardHarvesterPlugin(null);
|
|
|
|
|
AccountingDashboardHarvesterPlugin accountingDataHarvesterPlugin = new AccountingDashboardHarvesterPlugin();
|
|
|
|
|
accountingDataHarvesterPlugin.getConfigParameters();
|
|
|
|
|
|
|
|
|
|
SortedSet<String> contexts = getContexts();
|
|
|
|
@ -825,7 +812,7 @@ public class AccountingDataHarvesterPluginTest extends ContextTest {
|
|
|
|
|
Date start = DateUtils.getPreviousPeriod(measureType, false).getTime();
|
|
|
|
|
Date end = DateUtils.getEndDateFromStartDate(measureType, start, 1, false);
|
|
|
|
|
|
|
|
|
|
AccountingDashboardHarvesterPlugin accountingDataHarvesterPlugin = new AccountingDashboardHarvesterPlugin(null);
|
|
|
|
|
AccountingDashboardHarvesterPlugin accountingDataHarvesterPlugin = new AccountingDashboardHarvesterPlugin();
|
|
|
|
|
accountingDataHarvesterPlugin.getConfigParameters();
|
|
|
|
|
|
|
|
|
|
ContextAuthorization contextAuthorization = new ContextAuthorization();
|
|
|
|
@ -863,8 +850,7 @@ public class AccountingDataHarvesterPluginTest extends ContextTest {
|
|
|
|
|
|
|
|
|
|
ContextTest.setContextByName(ROOT);
|
|
|
|
|
|
|
|
|
|
AccountingDashboardHarvesterPluginDeclaration dataHarvestPluginDeclaration = new AccountingDashboardHarvesterPluginDeclaration();
|
|
|
|
|
AccountingDashboardHarvesterPlugin adhp = new AccountingDashboardHarvesterPlugin(dataHarvestPluginDeclaration);
|
|
|
|
|
AccountingDashboardHarvesterPlugin adhp = new AccountingDashboardHarvesterPlugin();
|
|
|
|
|
Properties properties = adhp.getConfigParameters();
|
|
|
|
|
AccountingDashboardHarvesterPlugin.getProperties().set(properties);
|
|
|
|
|
|
|
|
|
|