Package com.salesforce.phoenix.jdbc

Examples of com.salesforce.phoenix.jdbc.PhoenixTestDriver


    private static int driverRefCount = 0;

    protected static synchronized PhoenixTestDriver initDriver(QueryServices services) throws Exception {
        if (driver == null) {
            if (driverRefCount == 0) {
                BaseTest.driver = new PhoenixTestDriver(services);
                DriverManager.registerDriver(driver);
                driverRefCount++;
            }
        }
        return BaseTest.driver;
View Full Code Here


    protected static void startServer(String url, ReadOnlyProps props) throws Exception {
        assertNull(BaseTest.driver);
        // only load the test driver if we are testing locally - for integration tests, we want to
        // test on a wider scale
        if (PhoenixEmbeddedDriver.isTestUrl(url)) {
            PhoenixTestDriver driver = initDriver(new QueryServicesTestImpl(props));
            assertTrue(DriverManager.getDriver(url) == driver);
        }
    }
View Full Code Here

TOP

Related Classes of com.salesforce.phoenix.jdbc.PhoenixTestDriver

Copyright © 2018 www.massapicom. 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.