Package org.teiid.query.sql.lang

Examples of org.teiid.query.sql.lang.MatchCriteria


    int equals = 0;
    UnitTestUtil.helpTestEquivalence(equals, c1, c2);
  }
 
  public void testCloneEquivalence(){
    MatchCriteria c1 = example("abc"); //$NON-NLS-1$
    MatchCriteria c2 = (MatchCriteria)c1.clone();
    int equals = 0;
    UnitTestUtil.helpTestEquivalence(equals, c1, c2);
 
View Full Code Here


    UnitTestUtil.helpTestEquivalence(equals, c1, c2);
 
 
    public void testNonEquivalence1(){
        //test transitivity with two nonequal Objects
        MatchCriteria c1 = example("e1", "abc"); //$NON-NLS-1$ //$NON-NLS-2$
        MatchCriteria c2 = example("ozzy", '#'); //$NON-NLS-1$
        int equals = -1;
        UnitTestUtil.helpTestEquivalence(equals, c1, c2);
    }
View Full Code Here

        int equals = -1;
        UnitTestUtil.helpTestEquivalence(equals, c1, c2);
    }
   
    public void testNonEquivalence2(){
        MatchCriteria c1 = example("abc", '#'); //$NON-NLS-1$
        c1.setNegated(true);
        MatchCriteria c2 = example("abc", '#'); //$NON-NLS-1$
        c2.setNegated(false);
        int equals = -1;
        UnitTestUtil.helpTestEquivalence(equals, c1, c2);
    }
View Full Code Here

    IsNullCriteria inc = new IsNullCriteria(exampleElement(true, 0));
    helpTest(inc, getSymbolMap());
  }
 
    public void testVisitMatchCriteria() {
        MatchCriteria mc = new MatchCriteria(exampleElement(true, 0), new Constant("abc")); //$NON-NLS-1$
        helpTest(mc, getSymbolMap());      
    }
View Full Code Here

TOP

Related Classes of org.teiid.query.sql.lang.MatchCriteria

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.