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:
parent
5265332de9
commit
492d32550e
|
@ -44,7 +44,7 @@ public class AggregatedServiceUsageRecord extends AbstractServiceUsageRecord imp
|
||||||
init();
|
init();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected AggregatedServiceUsageRecord(Map<String, Serializable> properties) throws InvalidValueException{
|
public AggregatedServiceUsageRecord(Map<String, Serializable> properties) throws InvalidValueException{
|
||||||
super(properties);
|
super(properties);
|
||||||
init();
|
init();
|
||||||
}
|
}
|
||||||
|
|
|
@ -549,7 +549,7 @@ public abstract class BasicUsageRecord implements UsageRecord, Serializable {
|
||||||
}
|
}
|
||||||
|
|
||||||
Class<? extends UsageRecord> clz = getClass(className, aggregated);
|
Class<? extends UsageRecord> clz = getClass(className, aggregated);
|
||||||
logger.debug("Trying to instantiate {}", clz.getClass().getSimpleName());
|
logger.debug("Trying to instantiate {}", clz);
|
||||||
|
|
||||||
@SuppressWarnings("rawtypes")
|
@SuppressWarnings("rawtypes")
|
||||||
Class[] usageRecordArgTypes = { Map.class };
|
Class[] usageRecordArgTypes = { Map.class };
|
||||||
|
|
|
@ -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();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue