Package com.mysql.jdbc

Examples of com.mysql.jdbc.Driver


   * Constructor for this BugReport, sets up JDBC driver used to create
   * connections.
   */
  public BaseBugReport() {
    try {
      this.driver = new Driver();
    } catch (SQLException ex) {
      throw new RuntimeException(ex.toString());
    }
  }
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");

    // Re-build the connection information
    int firstIndexOfHost = BaseTestCase.dbUrl.indexOf("//") + 2;
    int lastIndexOfHost = BaseTestCase.dbUrl.indexOf("/", firstIndexOfHost);
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");

    // Re-build the connection information
    int firstIndexOfHost = BaseTestCase.dbUrl.indexOf("//") + 2;
    int lastIndexOfHost = BaseTestCase.dbUrl.indexOf("/", firstIndexOfHost);
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", "true");
    props.setProperty("roundRobinLoadBalance", "true");
    props.setProperty("failoverReadOnly", "false");
   
    // Re-build the connection information
View Full Code Here

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

   * Constructor for this BugReport, sets up JDBC driver used to create
   * connections.
   */
  public BaseBugReport() {
    try {
      this.driver = new Driver();
    } catch (SQLException ex) {
      throw new RuntimeException(ex.toString());
    }
  }
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(this.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

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.