Examples of parseURL()


Examples of com.mysql.jdbc.NonRegisteringDriver.parseURL()

          props = new Properties();
        }
        NonRegisteringDriver d = new NonRegisteringDriver();
        this.copyBasePropertiesIntoProps(props, d);
        props.setProperty("socketFactory", "testsuite.UnreliableSocketFactory");
        Properties parsed = d.parseURL(BaseTestCase.dbUrl, props);
        String db = parsed.getProperty(NonRegisteringDriver.DBNAME_PROPERTY_KEY);
        String port = parsed.getProperty(NonRegisteringDriver.PORT_PROPERTY_KEY);
        String host = getPortFreeHostname(props, d);
        UnreliableSocketFactory.flushAllHostLists();
        StringBuffer hostString = new StringBuffer();
View Full Code Here

Examples of com.mysql.jdbc.NonRegisteringDriver.parseURL()

  protected ReplicationConnection getUnreliableReplicationConnection(
      Set<MockConnectionConfiguration> configs, Properties props) throws Exception {
    NonRegisteringDriver d = new NonRegisteringDriver();
    this.copyBasePropertiesIntoProps(props, d);
    props.setProperty("socketFactory", "testsuite.UnreliableSocketFactory");
    Properties parsed = d.parseURL(BaseTestCase.dbUrl, props);
    String db = parsed.getProperty(NonRegisteringDriver.DBNAME_PROPERTY_KEY);
    String port = parsed.getProperty(NonRegisteringDriver.PORT_PROPERTY_KEY);
    String host = getPortFreeHostname(props, d);
    UnreliableSocketFactory.flushAllHostLists();
    StringBuffer hostString = new StringBuffer();
View Full Code Here

Examples of com.mysql.jdbc.NonRegisteringDriver.parseURL()

          props = new Properties();
        }
        NonRegisteringDriver d = new NonRegisteringDriver();
        this.copyBasePropertiesIntoProps(props, d);
        props.setProperty("socketFactory", "testsuite.UnreliableSocketFactory");
        Properties parsed = d.parseURL(BaseTestCase.dbUrl, props);
        String db = parsed.getProperty(NonRegisteringDriver.DBNAME_PROPERTY_KEY);
        String port = parsed.getProperty(NonRegisteringDriver.PORT_PROPERTY_KEY);
        String host = getPortFreeHostname(props, d);
        UnreliableSocketFactory.flushAllHostLists();
        StringBuffer hostString = new StringBuffer();
View Full Code Here

Examples of com.mysql.jdbc.NonRegisteringDriver.parseURL()

   * @throws Exception
   *             if the test fails.
   */
  public void testBug61150() throws Exception {
        NonRegisteringDriver driver = new NonRegisteringDriver();
    Properties oldProps = driver.parseURL(BaseTestCase.dbUrl, null);

    String host = driver.host(oldProps);
    int port = driver.port(oldProps);
    String user = oldProps
        .getProperty(NonRegisteringDriver.USER_PROPERTY_KEY);
View Full Code Here

Examples of com.mysql.jdbc.NonRegisteringDriver.parseURL()

    props.setProperty(NonRegisteringDriver.PROPERTIES_TRANSFORM_KEY,
        transformClassName);

    NonRegisteringDriver driver = new NonRegisteringDriver();

    Properties transformedProps = driver
        .parseURL(BaseTestCase.dbUrl, props);

    assertTrue("albequerque".equals(transformedProps
        .getProperty(NonRegisteringDriver.HOST_PROPERTY_KEY)));
  }
View Full Code Here

Examples of com.mysql.jdbc.NonRegisteringDriver.parseURL()

        "At least one connection was made with the localSocketAddress set",
        didOneWork);

    NonRegisteringDriver d = new NonRegisteringDriver();

    String hostname = d.host(d.parseURL(dbUrl, null));

    if (!hostname.startsWith(":") && !hostname.startsWith("localhost")) {

      int indexOfColon = hostname.indexOf(":");
View Full Code Here

Examples of com.mysql.jdbc.NonRegisteringDriver.parseURL()

        int bogusPortNumber = 65534;

        NonRegisteringDriver driver = new NonRegisteringDriver();

        Properties oldProps = driver.parseURL(BaseTestCase.dbUrl, null);

        String host = driver.host(oldProps);
        int port = driver.port(oldProps);
        String database = oldProps
            .getProperty(NonRegisteringDriver.DBNAME_PROPERTY_KEY);
View Full Code Here

Examples of com.mysql.jdbc.NonRegisteringDriver.parseURL()

    }

    url.append('/');
    url.append(dbname);

    Properties result = driver.parseURL(url.toString(), new Properties());

    assertEquals("hostname not equal", host,
        result.getProperty(Driver.HOST_PROPERTY_KEY));
    if (port != null) {
      assertEquals("port not equal", port,
View Full Code Here

Examples of com.mysql.jdbc.NonRegisteringDriver.parseURL()

    Properties props = new Properties();
    NonRegisteringDriver d = new NonRegisteringDriver();
    this.copyBasePropertiesIntoProps(props, d);
    props.setProperty("socketFactory", "testsuite.UnreliableSocketFactory");
    Properties parsed = d.parseURL(BaseTestCase.dbUrl, props);
    String db = parsed
        .getProperty(NonRegisteringDriver.DBNAME_PROPERTY_KEY);
    String port = parsed
        .getProperty(NonRegisteringDriver.PORT_PROPERTY_KEY);
    String host = getPortFreeHostname(props, d);
View Full Code Here

Examples of com.mysql.jdbc.NonRegisteringDriver.parseURL()

    props.setProperty(NonRegisteringDriver.PROPERTIES_TRANSFORM_KEY,
        transformClassName);

    NonRegisteringDriver driver = new NonRegisteringDriver();

    Properties transformedProps = driver
        .parseURL(BaseTestCase.dbUrl, props);

    assertTrue("albequerque".equals(transformedProps
        .getProperty(NonRegisteringDriver.HOST_PROPERTY_KEY)));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.