Fixed test to harvest old data for VREAccessesHarvester
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-dashboard-harvester-se-plugin@169298 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
87849c04b8
commit
c6e7ad3077
|
@ -10,6 +10,7 @@ import java.util.Map;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
import java.util.SortedSet;
|
import java.util.SortedSet;
|
||||||
import java.util.TreeSet;
|
import java.util.TreeSet;
|
||||||
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
import org.gcube.common.scope.impl.ScopeBean;
|
import org.gcube.common.scope.impl.ScopeBean;
|
||||||
import org.gcube.common.scope.impl.ScopeBean.Type;
|
import org.gcube.common.scope.impl.ScopeBean.Type;
|
||||||
|
@ -146,7 +147,7 @@ public class AccountingDataHarvesterPluginTest extends ContextTest {
|
||||||
|
|
||||||
AggregationType aggregationType = AggregationType.MONTHLY;
|
AggregationType aggregationType = AggregationType.MONTHLY;
|
||||||
|
|
||||||
Calendar from = DateUtils.getStartCalendar(2016, Calendar.SEPTEMBER, 1);
|
Calendar from = DateUtils.getStartCalendar(2018, Calendar.APRIL, 1);
|
||||||
|
|
||||||
Calendar runbeforeDate = DateUtils.getStartCalendar(2018, Calendar.JUNE, 1);
|
Calendar runbeforeDate = DateUtils.getStartCalendar(2018, Calendar.JUNE, 1);
|
||||||
|
|
||||||
|
@ -206,6 +207,8 @@ public class AccountingDataHarvesterPluginTest extends ContextTest {
|
||||||
Utils.setContext(ROOT);
|
Utils.setContext(ROOT);
|
||||||
dbaseManager.insertMonthlyData(start, end, data, true);
|
dbaseManager.insertMonthlyData(start, end, data, true);
|
||||||
|
|
||||||
|
Thread.sleep(TimeUnit.SECONDS.toMillis(10));
|
||||||
|
|
||||||
from.add(aggregationType.getCalendarField(), 1);
|
from.add(aggregationType.getCalendarField(), 1);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue