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:
parent
21f740c0f7
commit
7d9586bec0
|
@ -46,7 +46,7 @@ public class StorageUsageRecordAggregationStrategyTest {
|
||||||
logger.debug("Resulting Aggregated ServiceUsageRecord: {}", aggregated);
|
logger.debug("Resulting Aggregated ServiceUsageRecord: {}", aggregated);
|
||||||
aggregated.validate();
|
aggregated.validate();
|
||||||
|
|
||||||
Assert.assertTrue(aggregated.getDataVolume() == ((firstDataVolume + secondDataVolume)/2));
|
Assert.assertTrue(aggregated.getDataVolume() == (firstDataVolume + secondDataVolume));
|
||||||
Assert.assertTrue(aggregated.getOperationCount() == 2);
|
Assert.assertTrue(aggregated.getOperationCount() == 2);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -81,7 +81,7 @@ public class StorageUsageRecordAggregationStrategyTest {
|
||||||
logger.debug("Resulting Aggregated StorageUsageRecord: {}", aggregated);
|
logger.debug("Resulting Aggregated StorageUsageRecord: {}", aggregated);
|
||||||
aggregated.validate();
|
aggregated.validate();
|
||||||
|
|
||||||
Assert.assertTrue(aggregated.getDataVolume() == ((firstDataVolume + secondDataVolume)/2));
|
Assert.assertTrue(aggregated.getDataVolume() == (firstDataVolume + secondDataVolume));
|
||||||
Assert.assertTrue(aggregated.getOperationCount() == 2);
|
Assert.assertTrue(aggregated.getOperationCount() == 2);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -113,7 +113,7 @@ public class StorageUsageRecordAggregationStrategyTest {
|
||||||
logger.debug("Resulting Aggregated StorageUsageRecord : {}", aggregated);
|
logger.debug("Resulting Aggregated StorageUsageRecord : {}", aggregated);
|
||||||
aggregated.validate();
|
aggregated.validate();
|
||||||
|
|
||||||
Assert.assertTrue(aggregated.getDataVolume() == ((oldDataVolume + newDataVolume)/2));
|
Assert.assertTrue(aggregated.getDataVolume() == (oldDataVolume + newDataVolume));
|
||||||
Assert.assertTrue(aggregated.getOperationCount() == i);
|
Assert.assertTrue(aggregated.getOperationCount() == i);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue