re base code
[sdc.git] / catalog-dao / src / test / java / org / openecomp / sdc / be / dao / cassandra / schema / SdcSchemaUtilsTest.java
1 package org.openecomp.sdc.be.dao.cassandra.schema;
2
3 import org.junit.Test;
4 import org.openecomp.sdc.be.config.ConfigurationManager;
5 import org.openecomp.sdc.be.utils.DAOConfDependentTest;
6
7 import java.util.LinkedList;
8 import java.util.List;
9
10
11 public class SdcSchemaUtilsTest extends DAOConfDependentTest{
12         
13         @Test
14         public void testExecuteStatement() throws Exception {
15                 String statement = "";
16                 boolean result;
17
18                 // default test
19                 result = SdcSchemaUtils.executeStatement(statement);
20                 
21                 List<String> cassandraHosts = new LinkedList<>();
22                 ConfigurationManager.getConfigurationManager().getConfiguration().getCassandraConfig().setCassandraHosts(cassandraHosts);
23                 ConfigurationManager.getConfigurationManager().getConfiguration().getCassandraConfig().setAuthenticate(true);
24                 ConfigurationManager.getConfigurationManager().getConfiguration().getCassandraConfig().setSsl(true);
25                 
26                 result = SdcSchemaUtils.executeStatement(statement);
27         }
28
29         
30         @Test
31         public void testExecuteStatements() throws Exception {
32                 String[] statements = new String[] { "" };
33                 boolean result;
34
35                 // default test
36                 result = SdcSchemaUtils.executeStatements(statements);
37         }
38 }