Fixed constructor visibility

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@120317 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2015-11-19 14:51:47 +00:00
parent 5265332de9
commit 492d32550e
3 changed files with 12 additions and 2 deletions

View File

@ -44,7 +44,7 @@ public class AggregatedServiceUsageRecord extends AbstractServiceUsageRecord imp
init();
}
protected AggregatedServiceUsageRecord(Map<String, Serializable> properties) throws InvalidValueException{
public AggregatedServiceUsageRecord(Map<String, Serializable> properties) throws InvalidValueException{
super(properties);
init();
}

View File

@ -549,7 +549,7 @@ public abstract class BasicUsageRecord implements UsageRecord, Serializable {
}
Class<? extends UsageRecord> clz = getClass(className, aggregated);
logger.debug("Trying to instantiate {}", clz.getClass().getSimpleName());
logger.debug("Trying to instantiate {}", clz);
@SuppressWarnings("rawtypes")
Class[] usageRecordArgTypes = { Map.class };

View File

@ -70,4 +70,14 @@ public class AccountingPersistenceBackendMonitorTest {
}
@Test
public void singleParsingTest() throws Exception {
ScopeProvider.instance.set("/gcube/devsec");
AccountingPersistenceBackendFactory.setFallbackLocation(null);
AccountingPersistenceBackend accountingPersistenceBackend = AccountingPersistenceBackendFactory.getPersistenceBackend();
accountingPersistenceBackend.setFallback((FallbackPersistenceBackend) accountingPersistenceBackend);
AccountingPersistenceBackendMonitor accountingPersistenceBackendMonitor = new AccountingPersistenceBackendMonitor(accountingPersistenceBackend);
accountingPersistenceBackendMonitor.run();
}
}