refs #200: Create accouting-lib library

https://support.d4science.org/issues/200
Fixing tests for Aggregation Strategy

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@115588 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2015-06-26 13:52:17 +00:00
parent 21f740c0f7
commit 7d9586bec0
1 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ public class StorageUsageRecordAggregationStrategyTest {
logger.debug("Resulting Aggregated ServiceUsageRecord: {}", aggregated);
aggregated.validate();
Assert.assertTrue(aggregated.getDataVolume() == ((firstDataVolume + secondDataVolume)/2));
Assert.assertTrue(aggregated.getDataVolume() == (firstDataVolume + secondDataVolume));
Assert.assertTrue(aggregated.getOperationCount() == 2);
}
@ -81,7 +81,7 @@ public class StorageUsageRecordAggregationStrategyTest {
logger.debug("Resulting Aggregated StorageUsageRecord: {}", aggregated);
aggregated.validate();
Assert.assertTrue(aggregated.getDataVolume() == ((firstDataVolume + secondDataVolume)/2));
Assert.assertTrue(aggregated.getDataVolume() == (firstDataVolume + secondDataVolume));
Assert.assertTrue(aggregated.getOperationCount() == 2);
}
@ -113,7 +113,7 @@ public class StorageUsageRecordAggregationStrategyTest {
logger.debug("Resulting Aggregated StorageUsageRecord : {}", aggregated);
aggregated.validate();
Assert.assertTrue(aggregated.getDataVolume() == ((oldDataVolume + newDataVolume)/2));
Assert.assertTrue(aggregated.getDataVolume() == (oldDataVolume + newDataVolume));
Assert.assertTrue(aggregated.getOperationCount() == i);
}