Package com.mysql.jdbc

Examples of com.mysql.jdbc.Driver


    r.next();
    assertEquals("latin1", r.getString(2));
  }
 
  public void testBug58706() throws Exception {
    Properties props = new Driver().parseURL(BaseTestCase.dbUrl, null);
    props.setProperty("autoReconnect", "true");
    props.setProperty("socketFactory", "testsuite.UnreliableSocketFactory");

    Properties urlProps = new NonRegisteringDriver().parseURL(dbUrl,
        null);
View Full Code Here


      newConn.close();
    }
  }

  public void testBug63284() throws Exception {
    Properties props = new Driver().parseURL(BaseTestCase.dbUrl, null);
    props.setProperty("autoReconnect", "true");
    props.setProperty("socketFactory", "testsuite.UnreliableSocketFactory");

    Properties urlProps = new NonRegisteringDriver().parseURL(
            BaseTestCase.dbUrl, null);
View Full Code Here

   * @throws Exception
   *             if the test fails...Note, test is timing-dependent, but
   *             should work in most cases.
   */
  public void testBug6966() throws Exception {
    Properties props = new Driver().parseURL(BaseTestCase.dbUrl, null);
    props.setProperty("autoReconnect", "true");
    props.setProperty("socketFactory", "testsuite.UnreliableSocketFactory");

    Properties urlProps = new NonRegisteringDriver().parseURL(dbUrl,
        null);
View Full Code Here

   *
   * @throws Exception
   *             if the tests fails.
   */
  public void testBug7952() throws Exception {
    Properties props = new Driver().parseURL(BaseTestCase.dbUrl, null);
    props.setProperty("autoReconnect", "true");

    String host = props.getProperty(NonRegisteringDriver.HOST_PROPERTY_KEY);

    if (!NonRegisteringDriver.isHostPropertiesList(host)) {
View Full Code Here

   * @throws Exception
   *             if the test fails...Note, test is timing-dependent, but
   *             should work in most cases.
   */
  public void testBug23281() throws Exception {
    Properties props = new Driver().parseURL(BaseTestCase.dbUrl, null);
    props.setProperty("autoReconnect", "false");
    props.setProperty("roundRobinLoadBalance", "true");
    props.setProperty("failoverReadOnly", "false");

    if (!isRunningOnJdk131()) {
View Full Code Here

    }

  }

  public void testBug56429() throws Exception {
    Properties props = new Driver().parseURL(BaseTestCase.dbUrl, null);
    props.setProperty("autoReconnect", "true");
    props.setProperty("socketFactory", "testsuite.UnreliableSocketFactory");

    Properties urlProps = new NonRegisteringDriver().parseURL(
        BaseTestCase.dbUrl, null);
View Full Code Here

    r.next();
    assertEquals("latin1", r.getString(2));
  }
 
  public void testBug58706() throws Exception {
    Properties props = new Driver().parseURL(BaseTestCase.dbUrl, null);
    props.setProperty("autoReconnect", "true");
    props.setProperty("socketFactory", "testsuite.UnreliableSocketFactory");

    Properties urlProps = new NonRegisteringDriver().parseURL(dbUrl,
        null);
View Full Code Here

      newConn.close();
    }
  }

  public void testBug63284() throws Exception {
    Properties props = new Driver().parseURL(BaseTestCase.dbUrl, null);
    props.setProperty("autoReconnect", "true");
    props.setProperty("socketFactory", "testsuite.UnreliableSocketFactory");

    Properties urlProps = new NonRegisteringDriver().parseURL(
            BaseTestCase.dbUrl, null);
View Full Code Here

        //load-balanced connection
        connection = getLoadBalancedConnection(props);
        break;
      case 2:
        //failover connection
        Properties baseprops = new Driver().parseURL(BaseTestCase.dbUrl, null);
        baseprops.setProperty("autoReconnect", "true");
        baseprops.setProperty("socketFactory", "testsuite.UnreliableSocketFactory");

        Properties urlProps = new NonRegisteringDriver().parseURL(BaseTestCase.dbUrl, null);
        String host = urlProps.getProperty(Driver.HOST_PROPERTY_KEY);
View Full Code Here

   *
   * @throws Exception
   *             if an error occurs.
   */
  public void testGetPropertyInfo() throws Exception {
    new Driver().getPropertyInfo("", null);
  }
View Full Code Here

TOP

Related Classes of com.mysql.jdbc.Driver

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.