Java Code Examples for org.apache.phoenix.jdbc.PhoenixEmbeddedDriver#isTestUrl()
The following examples show how to use
org.apache.phoenix.jdbc.PhoenixEmbeddedDriver#isTestUrl() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AbstractPhoenixConnectionlessTest.java From ambari-metrics with Apache License 2.0 | 5 votes |
private static void startServer(String url) throws Exception { assertNull(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)) { driver = initDriver(ReadOnlyProps.EMPTY_PROPS); assertTrue(DriverManager.getDriver(url) == driver); driver.connect(url, PropertiesUtil.deepCopy(TEST_PROPERTIES)); } }
Example 2
Source File: BaseConnectionlessQueryTest.java From phoenix with Apache License 2.0 | 5 votes |
private static void startServer(String url) throws Exception { assertNull(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)) { driver = initDriver(ReadOnlyProps.EMPTY_PROPS); assertTrue(DriverManager.getDriver(url) == driver); driver.connect(url, PropertiesUtil.deepCopy(TEST_PROPERTIES)); } }
Example 3
Source File: BaseConnectionlessQueryTest.java From phoenix with Apache License 2.0 | 5 votes |
private static void startServer(String url) throws Exception { assertNull(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)) { driver = initDriver(ReadOnlyProps.EMPTY_PROPS); assertTrue(DriverManager.getDriver(url) == driver); driver.connect(url, PropertiesUtil.deepCopy(TEST_PROPERTIES)); } }