aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-dao
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-dao')
-rw-r--r--catalog-dao/pom.xml10
-rw-r--r--catalog-dao/src/test/java/org/openecomp/sdc/be/utils/CassandraTestHelper.java11
2 files changed, 10 insertions, 11 deletions
diff --git a/catalog-dao/pom.xml b/catalog-dao/pom.xml
index f89e5f7efc..7f37fdfe8b 100644
--- a/catalog-dao/pom.xml
+++ b/catalog-dao/pom.xml
@@ -309,6 +309,11 @@ Modifications copyright (c) 2018 Nokia
<scope>provided</scope>
</dependency>
<dependency>
+ <groupId>com.datastax.oss</groupId>
+ <artifactId>java-driver-core</artifactId>
+ <version>${java.driver.core.version}</version>
+ </dependency>
+ <dependency>
<groupId>org.cassandraunit</groupId>
<artifactId>cassandra-unit</artifactId>
<version>${cassandra.unit.version}</version>
@@ -330,11 +335,6 @@ Modifications copyright (c) 2018 Nokia
<version>3.11.3</version>
<scope>test</scope>
</dependency>
- <dependency>
- <groupId>org.apache.thrift</groupId>
- <artifactId>libthrift</artifactId>
- <version>${libthrift.version}</version>
- </dependency>
<!-- CASSANDRA END -->
<dependency>
diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/utils/CassandraTestHelper.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/utils/CassandraTestHelper.java
index d97f7d3fa4..eec9b20fbd 100644
--- a/catalog-dao/src/test/java/org/openecomp/sdc/be/utils/CassandraTestHelper.java
+++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/utils/CassandraTestHelper.java
@@ -22,23 +22,22 @@
package org.openecomp.sdc.be.utils;
import com.datastax.driver.core.Cluster;
+import java.io.IOException;
import org.apache.cassandra.exceptions.ConfigurationException;
-import org.apache.thrift.transport.TTransportException;
import org.cassandraunit.utils.EmbeddedCassandraServerHelper;
-import java.io.IOException;
-
public class CassandraTestHelper {
+
public static final String SERVER = "localhost";
- public static final int BINARY_PORT = 9142;
+ private static final int BINARY_PORT = 9142;
- public CassandraTestHelper() {
+ private CassandraTestHelper() {
}
public static void startServer() {
try {
EmbeddedCassandraServerHelper.startEmbeddedCassandra(80000);
- } catch(TTransportException | ConfigurationException | IOException ex) {
+ } catch (ConfigurationException | IOException ex) {
throw new RuntimeException(ex);
}
}