Package org.apache.imperius.spl.parser.expressions.impl

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


    try {
      Vector v = new Vector();
      v.add(new StringConstant(s1));
      v.add(new StringConstant(s2));
      v.add(new StringConstant(s3));
      Expression e1 = new ReplaceSubstring(v,true);

      v.clear();
      v.add(propertySensor1);
      v.add(propertySensor2);
      v.add(propertySensor3);
      Expression eps1 = new ReplaceSubstring(v,true);
      s4 = s4.substring(1, s4.length()-1);
      assertTrue(s4.compareTo((String)e1.evaluate()) == 0);
      assertTrue(s4.compareTo((String)eps1.evaluate()) == 0);
    } catch (SPLException e) {
      fail("Received evaluation exception " + e.getMessage());
    } catch (Exception e) {
      fail("Received expression exception " + e.getMessage());
    }
View Full Code Here

TOP

Related Classes of org.apache.imperius.spl.parser.expressions.impl.ReplaceSubstring

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.