Examples of LoopStatement


Examples of org.teiid.query.sql.proc.LoopStatement

        return new LoopStatement(block, query1(), "cursor"); //$NON-NLS-1$
    }

    public static final LoopStatement sample2() {
        Block block = TestBlock.sample2();
        return new LoopStatement(block, query2(), "cursor"); //$NON-NLS-1$
    }
View Full Code Here

Examples of org.teiid.query.sql.proc.LoopStatement

   
    // ################################## ACTUAL TESTS ################################


    public void testGetBlock() {
        LoopStatement b1 = sample1();
        assertTrue("Incorrect Block on statement", b1.getBlock().equals(TestBlock.sample1())); //$NON-NLS-1$
    }
View Full Code Here

Examples of org.teiid.query.sql.proc.LoopStatement

        LoopStatement b1 = sample1();
        assertTrue("Incorrect Block on statement", b1.getBlock().equals(TestBlock.sample1())); //$NON-NLS-1$
    }
   
    public void testGetQuery() {
        LoopStatement b1 = sample1();
        assertTrue("Incorrect Query on statement", b1.getCommand().equals(query1())); //$NON-NLS-1$
    }
View Full Code Here

Examples of org.teiid.query.sql.proc.LoopStatement

        LoopStatement b1 = sample1();
        assertTrue("Incorrect Query on statement", b1.getCommand().equals(query1())); //$NON-NLS-1$
    }
   
    public void testGetCursorName(){
        LoopStatement b1 = sample1();
        LoopStatement b2 = sample2();
        assertEquals(b1.getCursorName(), b2.getCursorName());
    }
View Full Code Here

Examples of org.teiid.query.sql.proc.LoopStatement

        LoopStatement b2 = sample2();
        assertEquals(b1.getCursorName(), b2.getCursorName());
    }
   
    public void testSelfEquivalence(){
        LoopStatement s1 = sample1();
        int equals = 0;
        UnitTestUtil.helpTestEquivalence(equals, s1, s1);
    }
View Full Code Here

Examples of org.teiid.query.sql.proc.LoopStatement

        int equals = 0;
        UnitTestUtil.helpTestEquivalence(equals, s1, s1);
    }

    public void testEquivalence(){
        LoopStatement s1 = sample1();
        LoopStatement s1a = sample1();
        int equals = 0;
        UnitTestUtil.helpTestEquivalence(equals, s1, s1a);
    }
View Full Code Here

Examples of org.teiid.query.sql.proc.LoopStatement

        int equals = 0;
        UnitTestUtil.helpTestEquivalence(equals, s1, s1a);
    }
   
    public void testNonEquivalence(){
        LoopStatement s1 = sample1();
        LoopStatement s2 = sample2();
        int equals = -1;
        UnitTestUtil.helpTestEquivalence(equals, s1, s2);
    }
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.