/**
 * Copyright (C) 2015 Stratio (http://stratio.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.stratio.tests;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;

import com.stratio.cucumber.testng.CucumberRunner;
import com.stratio.exceptions.DBException;
import com.stratio.tests.utils.BaseTest;
import com.stratio.tests.utils.CassandraUtils;
import com.stratio.tests.utils.ThreadProperty;

import cucumber.api.CucumberOptions;

//Indicar feature
@CucumberOptions(features = {
		"src/test/resources/features/Cassandra/CassandraSelectSimple.feature",
//		"src/test/resources/features/Cassandra/CassandraSelectLimit.feature",
//		"src/test/resources/features/Cassandra/CassandraSelectEqualsFilter.feature",
//		"src/test/resources/features/Cassandra/CassandraSelectUDF.feature",
//		"src/test/resources/features/Cassandra/CassandraPureNativeAggregation.feature",
//		"src/test/resources/features/Udaf/Group_concat.feature",
//		"src/test/resources/features/Views/TemporaryViews.feature",
//		"src/test/resources/features/Views/Views.feature",
//		"src/test/resources/features/Views/DropViews.feature"

		})
public class ATCassandraXDJavaDriverTest extends BaseTest {
	private final Logger logger = LoggerFactory.getLogger(this.getClass()
			.getCanonicalName());
	CassandraUtils cassandra = new CassandraUtils();
	private String catalog = "databasetest";
	// Global for C*
	private String host = System.getProperty("CASSANDRA_HOST", "127.0.0.1");
	private String sourceProvider = System.getProperty("SOURCE_PROVIDER",
			"com.stratio.crossdata.sql.sources.cassandra");

	public ATCassandraXDJavaDriverTest() {
	}

	@BeforeClass(groups = {"basic"})
	public void setUp() {
		logger.info("Connecting to Cassandra Cluster");
		cassandra.connect();
		logger.info("Checking if the catalog exists");
		if (cassandra.existsKeyspace(catalog, false)) {
			logger.info("The catalog exists");
			cassandra.dropKeyspace(catalog);
			logger.info("The catalog has benn dropped");
		}
		cassandra.createKeyspace(catalog);
		cassandra.loadTestData(catalog, "/scripts/CassandraScript.cql");
		List<String> tables = cassandra.getTables(catalog);
		String connector = "Cassandra";
		ThreadProperty.set("Connector", connector);
		ThreadProperty.set("Driver", "javaDriver");

	}

	@AfterClass(groups = {"basic"})
	public void cleanUp() {
		cassandra.dropKeyspace(catalog);
		try {
			cassandra.disconnect();
		} catch (DBException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}

	@Test(enabled = true, groups = {"basic"})
	public void ATCassandraXDJavaDriverTest() throws Exception {
		new CucumberRunner(this.getClass()).runCukes();
	}

}


@@ -1226,34 +1226,32 @@
 imple.feature%22,%0A
-//
 %09%09%22src/test/reso
@@ -1298,34 +1298,32 @@
 Limit.feature%22,%0A
-//
 %09%09%22src/test/reso
@@ -1377,34 +1377,32 @@
 ilter.feature%22,%0A
-//
 %09%09%22src/test/reso
@@ -1447,34 +1447,32 @@
 ctUDF.feature%22,%0A
-//
 %09%09%22src/test/reso
@@ -1529,34 +1529,32 @@
 ation.feature%22,%0A
-//
 %09%09%22src/test/reso
@@ -1588,34 +1588,32 @@
 oncat.feature%22,%0A
-//
 %09%09%22src/test/reso
@@ -1650,34 +1650,32 @@
 Views.feature%22,%0A
-//
 %09%09%22src/test/reso
@@ -1711,18 +1711,16 @@
 ature%22,%0A
-//
 %09%09%22src/t

Update ATCassandraXDJAvaDriverTest.java