Package org.dayatang.domain.internal

Examples of org.dayatang.domain.internal.GtCriterion


    /**
     * Test of gt method, of class CriteriaQuery.
     */
    @Test
    public void testGt() {
      assertEquals(new GtCriterion("id", 5), instance.gt("id", 5).getQueryCriterion());
    }
View Full Code Here


     * Test of and method, of class CriteriaQuery.
     */
    @Test
    public void testAnd() {
        QueryCriterion criterion1 = new EqCriterion("name", "abc");
        QueryCriterion criterion2 = new GtCriterion("id", 5);
        QueryCriterion criterion3 = new AndCriterion(criterion1, criterion2);
       
        assertEquals(criterion3, instance.and(criterion1, criterion2).getQueryCriterion());
    }
View Full Code Here

     * Test of or method, of class CriteriaQuery.
     */
    @Test
    public void testOr() {
        QueryCriterion criterion1 = new EqCriterion("name", "abc");
        QueryCriterion criterion2 = new GtCriterion("id", 5);
        QueryCriterion criterion3 = new OrCriterion(criterion1, criterion2);
       
        assertEquals(criterion3, instance.or(criterion1, criterion2).getQueryCriterion());
    }
View Full Code Here

TOP

Related Classes of org.dayatang.domain.internal.GtCriterion

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.