From feefa712c46432e7dbf9f6e9cf68cb6d0ad942ee Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Wed, 14 Feb 2024 18:26:48 +0100 Subject: [PATCH] Added tests --- .../persistence/PostgreSQLConnectorTest.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/gcube/accounting/aggregator/persistence/PostgreSQLConnectorTest.java b/src/test/java/org/gcube/accounting/aggregator/persistence/PostgreSQLConnectorTest.java index 3002c66..9857a4b 100644 --- a/src/test/java/org/gcube/accounting/aggregator/persistence/PostgreSQLConnectorTest.java +++ b/src/test/java/org/gcube/accounting/aggregator/persistence/PostgreSQLConnectorTest.java @@ -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