Package com.pardot.rhombus.functional

Source Code of com.pardot.rhombus.functional.RhombusFunctionalTest

package com.pardot.rhombus.functional;

import com.datastax.driver.core.Cluster;
import com.pardot.rhombus.ConnectionManager;
import com.pardot.rhombus.helpers.ConnectionManagerTester;
import com.pardot.rhombus.helpers.TestHelpers;

import java.io.IOException;

import static org.junit.Assert.assertNotNull;

/**
* User: Rob Righter
* Date: 8/20/13
*/
public abstract class RhombusFunctionalTest {

    protected ConnectionManagerTester getConnectionManager() throws IOException {
    return RhombusFunctionalTest.getConnectionManagerStatic();
    }

  protected static ConnectionManagerTester getConnectionManagerStatic() throws IOException {
    //Get a connection manager based on the test properties
    ConnectionManagerTester connectionManager = TestHelpers.getTestConnectionManager();
    connectionManager.setLogCql(true);
    connectionManager.buildCluster(true);
    assertNotNull(connectionManager);
    return connectionManager;
  }
}
TOP

Related Classes of com.pardot.rhombus.functional.RhombusFunctionalTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.