summaryrefslogtreecommitdiffstats
path: root/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/SdcSchemaUtilsTest.java
blob: 47d310765efb89382d67e60edd46f61556c2c6e9 (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 java.util.LinkedList;
import java.util.List;

import org.junit.Test;
import org.openecomp.sdc.be.config.ConfigurationManager;
import org.openecomp.sdc.be.utils.DAOConfDependentTest;


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);
	}
}