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