Package com.crawljax.oraclecomparator.comparators

Examples of com.crawljax.oraclecomparator.comparators.DateComparator


  private static void addOracleComparators(CrawljaxConfigurationBuilder builder) {
    builder.crawlRules().addOracleComparator(
            new OracleComparator("style", new StyleComparator()));

    builder.crawlRules().addOracleComparator(
            new OracleComparator("date", new DateComparator()));
  }
View Full Code Here


          case attribute:
            attributes.add(c.getExpression());
            break;
          case date:
            rules.addOracleComparator(new OracleComparator(c.getType().toString()
                    + c.getExpression(), new DateComparator()));
            break;
          case regex:
            regexs.add(c.getExpression());
            break;
          case script:
View Full Code Here

  private static void addOracleComparators(CrawljaxConfigurationBuilder builder) {
    builder.crawlRules().addOracleComparator(
      new OracleComparator("style", new StyleComparator()));

    builder.crawlRules().addOracleComparator(
      new OracleComparator("date", new DateComparator()));
  }
View Full Code Here

  }

  @Test
  public void testDateOracle() {

    Comparator oracle = new DateComparator();

    /* dates with days */
    compareTwoDomsWithComparatorEqual("<HTML>Monday 15 march 1998</HTML>",
            "<HTML>Tuesday 13 december 2005</HTML>", oracle);
    compareTwoDomsWithComparatorEqual("<HTML>Monday 1 feb '98</HTML>",
View Full Code Here

  private static void addOracleComparators(CrawljaxConfigurationBuilder builder) {
    builder.crawlRules().addOracleComparator(
            new OracleComparator("style", new StyleComparator()));

    builder.crawlRules().addOracleComparator(
            new OracleComparator("date", new DateComparator()));
  }
View Full Code Here

TOP

Related Classes of com.crawljax.oraclecomparator.comparators.DateComparator

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.