Package com.crawljax.oraclecomparator.comparators

Examples of com.crawljax.oraclecomparator.comparators.RegexComparator


      if (attributes.size() > 0)
        rules.addOracleComparator(new OracleComparator(
                "attribute",
                new AttributeComparator(attributes.toArray(new String[attributes.size()]))));
      if (regexs.size() > 0)
        rules.addOracleComparator(new OracleComparator("regex", new RegexComparator(
                regexs.toArray(new String[regexs.size()]))));
      if (xpaths.size() > 0)
        rules.addOracleComparator(new OracleComparator("xpath",
                new XPathExpressionComparator(xpaths.toArray(new String[xpaths.size()]))));
    }
View Full Code Here


  }

  @Test
  public void testRegexOracle() {
    Comparator oracle =
            new RegexComparator("[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}");
    compareTwoDomsWithComparatorEqual("<HTML>192.168.1.1</HTML>", "<HTML>10.0.0.138</HTML>",
            oracle);
  }
View Full Code Here

TOP

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

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.