Examples of parseURL()


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()

     
      assertTrue("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()

      props = new Properties();
    }
    NonRegisteringDriver d = new NonRegisteringDriver();
    this.copyBasePropertiesIntoProps(props, d);
    props.setProperty("socketFactory", "testsuite.UnreliableSocketFactory");
    String db = d.parseURL(BaseTestCase.dbUrl, props).getProperty(NonRegisteringDriver.DBNAME_PROPERTY_KEY);
   
    String host = getPortFreeHostname(props, d);
    UnreliableSocketFactory.flushAllHostLists();
    StringBuffer hostString = new StringBuffer();
    String glue = "";
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, result
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 org.apache.harmony.jndi.provider.ldap.parser.LdapUrlParser.parseURL()

            throw new NullPointerException(Messages.getString("ldap.2B")); //$NON-NLS-1$
        }

        LdapUrlParser parser = new LdapUrlParser(url);
        try {
            parser.parseURL();
        } catch (ParseException e) {
            // ldap.2C=Invalid LDAP URL
            IllegalArgumentException ex = new IllegalArgumentException(Messages
                    .getString("ldap.2C")); //$NON-NLS-1$
            ex.initCause(e);
View Full Code Here

Examples of org.apache.harmony.jndi.provider.ldap.parser.LdapUrlParser.parseURL()

            throw new NullPointerException(Messages.getString("ldap.2B")); //$NON-NLS-1$
        }

        LdapUrlParser parser = new LdapUrlParser(url);
        try {
            parser.parseURL();
        } catch (ParseException e) {
            // ldap.2C=Invalid LDAP URL
            IllegalArgumentException ex = new IllegalArgumentException(Messages
                    .getString("ldap.2C")); //$NON-NLS-1$
            ex.initCause(e);
View Full Code Here

Examples of org.obolibrary.oboformat.parser.OBOFormatParser.parseURL()

public class OboFormatTestBasics {

    @Nonnull
    protected OBODoc parseOBOURL(String fn) throws IOException {
        OBOFormatParser p = new OBOFormatParser();
        OBODoc obodoc = p.parseURL(fn);
        assertTrue(!obodoc.getTermFrames().isEmpty());
        return obodoc;
    }

    @Nonnull
View Full Code Here

Examples of ru.snake.amazonwatcher.parser.SiteParser.parseUrl()

    SiteParser parser = ParserFactory.createParser(pi.getHost());

    if (parser != null) {
      PriceInfo newPrice;

      parser.parseUrl(pi.getUrl());

      newPrice = parser.getPrice();

      if (newPrice.getPrice() > 0.01f
          && Math.abs(newPrice.getPrice() - pi.getPrice()) > 0.01f) {
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.