Added tests

This commit is contained in:
Luca Frosini 2024-02-14 18:26:48 +01:00
parent e9eed9f889
commit feefa712c4
1 changed files with 10 additions and 2 deletions

View File

@ -13,6 +13,7 @@ import org.gcube.accounting.aggregator.status.AggregationStatus;
import org.gcube.accounting.aggregator.utility.Utility;
import org.gcube.accounting.datamodel.usagerecords.ServiceUsageRecord;
import org.gcube.documentstore.records.DSMapper;
import org.junit.Ignore;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ -27,11 +28,18 @@ public class PostgreSQLConnectorTest extends ContextTest {
aggregatorPersistenceStatus = AggregatorPersistenceFactory.getAggregatorPersistenceStatus();
}
@Ignore
@Test
public void getAggregatorPersistenceDst() throws Exception {
ContextTest.setContextByName(ROOT_PROD);
AggregatorPersistenceDst dst = AggregatorPersistenceFactory.getAggregatorPersistenceDst();
dst.commitAndClose();
logger.debug("{}", dst);
}
@Ignore
@Test
public void getAggregatorPersistenceSrc() throws Exception {
AggregatorPersistenceSrc src = AggregatorPersistenceFactory.getAggregatorPersistenceSrc();
logger.debug("{}", src);
}
@Test