<commit_before>/*
 * Microsoft JDBC Driver for SQL Server
 * 
 * Copyright(c) 2016 Microsoft Corporation
 * All rights reserved.
 * 
 * This program is made available under the terms of the MIT License.
 * See the LICENSE file in the project root for more information.
 */
package com.microsoft.sqlserver.testframework;

import java.sql.Connection;
import java.util.Properties;
import java.util.logging.Logger;

import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeAll;

import com.microsoft.sqlserver.jdbc.SQLServerConnection;

/**
 * Think about following things: 
 * <li>Connection pool
 * <li>Configured Property file instead of passing from args.
 * <li>Think of different property files for different settings. / flag etc.
 * <Li>Think about what kind of logging we are going use it. <B>util.logging<B> will be preference.
 */
public abstract class AbstractTest {

	protected static Logger logger = Logger.getLogger("AbstractTest");

	protected static String secretstrJks = "changeit";

	protected static String applicationClientID = null;
	protected static String applicationKey = null;
	protected static String[] keyIDs = null;

	protected static String[] jksPaths = null;
	protected static String[] javaKeyAliases = null;
	protected static String windowsKeyPath = null;

	protected static SQLServerConnection connection = null;
	protected static Connection connectionAzure = null;

	protected static String connectionString = null;

	protected static Properties info = new Properties();

	/**
	 * This will take care of all initialization before running the Test Suite.
	 * @throws Exception
	 */
	@BeforeAll
	public static void setup() throws Exception {
		//TODO: Here we want to read config.property file or depend upon app.jvmarg
		applicationClientID = System.getProperty("applicationClientID");
		applicationKey = System.getProperty("applicationKey");
		keyIDs = System.getProperty("keyID", "").split(";");

		connectionString = System.getProperty("connectionstring");<commit_msg>Update Conection String as per Travis Conf.<commit_after>/*
 * Microsoft JDBC Driver for SQL Server
 * 
 * Copyright(c) 2016 Microsoft Corporation
 * All rights reserved.
 * 
 * This program is made available under the terms of the MIT License.
 * See the LICENSE file in the project root for more information.
 */
package com.microsoft.sqlserver.testframework;

import java.sql.Connection;
import java.util.Properties;
import java.util.logging.Logger;

import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeAll;

import com.microsoft.sqlserver.jdbc.SQLServerConnection;

/**
 * Think about following things: 
 * <li>Connection pool
 * <li>Configured Property file instead of passing from args.
 * <li>Think of different property files for different settings. / flag etc.
 * <Li>Think about what kind of logging we are going use it. <B>util.logging<B> will be preference.
 */
public abstract class AbstractTest {

	protected static Logger logger = Logger.getLogger("AbstractTest");

	protected static String secretstrJks = "changeit";

	protected static String applicationClientID = null;
	protected static String applicationKey = null;
	protected static String[] keyIDs = null;

	protected static String[] jksPaths = null;
	protected static String[] javaKeyAliases = null;
	protected static String windowsKeyPath = null;

	protected static SQLServerConnection connection = null;
	protected static Connection connectionAzure = null;

	protected static String connectionString = null;

	protected static Properties info = new Properties();

	/**
	 * This will take care of all initialization before running the Test Suite.
	 * @throws Exception
	 */
	@BeforeAll
	public static void setup() throws Exception {
		//TODO: Here we want to read config.property file or depend upon app.jvmarg
		applicationClientID = System.getProperty("applicationClientID");
		applicationKey = System.getProperty("applicationKey");
		keyIDs = System.getProperty("keyID", "").split(";");

		connectionString = System.getProperty("mssql_jdbc_test_connection_properties");
{'fraction_non_alphanumeric': 0.08571428571428572, 'fraction_numerical': 0.0019207683073229293, 'mean_word_length': 4.8841807909604515, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4265173', 'n_tokens_mistral': 1104, 'n_tokens_neox': 1049, 'n_words': 403}