Examples of MatchesRegExp


Examples of org.apache.imperius.spl.parser.expressions.impl.MatchesRegExp

    try {
      Expression exp;
      Vector v = new Vector();
      v.add(new StringConstant(s1));
      v.add(new StringConstant(s2));
      exp = new MatchesRegExp(v,true);
      assertTrue(exp.evaluate().equals(Boolean.TRUE));

      v.clear();
      v.add(new StringConstant(s1));
      v.add(new StringConstant(s2));
      exp = new MatchesRegExp(v,true);
      assertTrue(exp.evaluate().equals(Boolean.TRUE));
    } catch (SPLException e) {
      fail("Received evaluation exception " + e.getMessage());
    } catch (Exception e) {
      fail("Received expression exception " + e.getMessage());
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.