Github user yaise commented on a diff in the pull request:

    https://github.com/apache/incubator-phoenix/pull/15#discussion_r10536763
  
    --- Diff: 
phoenix-core/src/test/java/org/apache/phoenix/jdbc/PhoenixDriverTest.java ---
    @@ -0,0 +1,48 @@
    +package org.apache.phoenix.jdbc;
    +
    +import org.apache.phoenix.util.PhoenixRuntime;
    +import org.junit.*;
    +
    +import java.sql.Connection;
    +import java.sql.Driver;
    +import java.sql.DriverManager;
    +import java.sql.SQLException;
    +import java.util.Properties;
    +
    +import static org.junit.Assert.assertEquals;
    +
    +public class PhoenixDriverTest {
    +
    +    @Before
    +    public void registerTestDriver() throws Exception {
    +        DriverManager.registerDriver(new PhoenixTestDriver());
    +    }
    +
    +    @After
    +    public void deRegisterTestDriver() throws Exception {
    +        DriverManager.deregisterDriver(new PhoenixTestDriver());
    --- End diff --
    
    Let me try that. My intention was to avoid any base classes that *might* do 
some pre work using a phoenix Connection. I wanted my test to be the first 
thing that connects to phoenix. Let me see what that base class does. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to