Package org.teiid.query.sql.proc

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


                     "WHILE(x < 100)"+"\n"+ "BEGIN"+"\n"+"x = (x + 1);" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$
                     +"\n"+"END", whileStmt); //$NON-NLS-1$ //$NON-NLS-2$
    }
   
    @Test public void testBreakStatement() throws Exception {
        Statement breakStmt = new BreakStatement();
        helpStmtTest("break;", "BREAK;", breakStmt); //$NON-NLS-1$ //$NON-NLS-2$
    }
View Full Code Here


    }
   
    // ################################## TEST HELPERS ################################

    public static final BreakStatement sample1() {
        return new BreakStatement();
    }
View Full Code Here

    public static final BreakStatement sample1() {
        return new BreakStatement();
    }
   
    public static final BreakStatement sample2() {
        return new BreakStatement();
    }
View Full Code Here

    }
   
    // ################################## ACTUAL TESTS ################################
   
    public void testSelfEquivalence(){
        BreakStatement s1 = sample1();
        int equals = 0;
        UnitTestUtil.helpTestEquivalence(equals, s1, s1);
    }
View Full Code Here

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

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

        int equals = 0;
        UnitTestUtil.helpTestEquivalence(equals, s1, s1a);
    }
   
    public void testNonEquivalence(){
        BreakStatement s1 = sample1();
        int equals = -1;
        UnitTestUtil.helpTestEquivalence(equals, s1, new ContinueStatement());
    }
View Full Code Here

    }
   
    public void testNonEquivalence(){
        ContinueStatement s1 = sample1();
        int equals = -1;
        UnitTestUtil.helpTestEquivalence(equals, s1, new BreakStatement());
    }
View Full Code Here

TOP

Related Classes of org.teiid.query.sql.proc.BreakStatement

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.