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

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


             propertySensor5=new DateTimeConstant(c2);
              // Property1 == Property2 (true == false) = false   
              List v = new ArrayList();
              v.add(propertySensor1);
              v.add(propertySensor3);
              Expression firstExpression = new NotEqual(v,true);

              // Property1 == Property3 (true == true) = true   
              v.clear();
              v.add(propertySensor1);
              v.add(propertySensor2);
              Expression secondExpression = new NotEqual(v,true);
             
              v.clear();
              v.add(propertySensor4);
              v.add(propertySensor5);
              Expression thirdExpression = new NotEqual(v,true);


              // Property1 == ConstantTrue (true==true) = true

            //System.out.println("c1 c2 :"+ c1.toString() + " "+c2.toString());
              assertFalse(
                  ((Boolean) firstExpression.evaluate()).booleanValue());
              assertTrue(
                  ((Boolean) secondExpression.evaluate()).booleanValue());
              assertTrue(
                  ((Boolean) thirdExpression.evaluate()).booleanValue());
            
          } catch (SPLException e) { 
            logger.severe("Received evaluation exception " + e.getMessage());
            e.printStackTrace();
              fail("Received evaluation exception " + e.getMessage());
View Full Code Here


    case SPLTreeParserTokenTypes.BXOR:
      returnExpr = new LogicalXor(exprList, validateExpr);
      break;

    case SPLTreeParserTokenTypes.NOT_EQUAL:
      returnExpr = new NotEqual(exprList, validateExpr);
      break;

    case SPLTreeParserTokenTypes.EQUAL:
      returnExpr = new Equal(exprList, validateExpr);
      break;
View Full Code Here

TOP

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

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.