Package org.teiid.query.sql.lang

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


        option.addDependentGroup("xyz"); //$NON-NLS-1$
        helpTest(option, "OPTION MAKEDEP abc, def, xyz");     //$NON-NLS-1$
    }

    public void testOption8() {
        Option option = new Option();
        option.addNoCacheGroup("abc"); //$NON-NLS-1$
        option.addNoCacheGroup("def"); //$NON-NLS-1$
        option.addNoCacheGroup("xyz"); //$NON-NLS-1$
        helpTest(option, "OPTION NOCACHE abc, def, xyz");     //$NON-NLS-1$
    }
View Full Code Here


        helpTest(option, "OPTION NOCACHE abc, def, xyz");     //$NON-NLS-1$
    }
   
//  related to defect 14423
    public void testOption9() {
        Option option = new Option();
        option.setNoCache(true);
        helpTest(option, "OPTION NOCACHE");     //$NON-NLS-1$
    }
View Full Code Here

    public TestOption(String arg0) {
        super(arg0);
    }
   
    public void testOptionEquals1() {
        Option opt1 = new Option();
        Option opt2 = new Option();
       
        assertTrue("Options should be equal", opt1.equals(opt2)); //$NON-NLS-1$
        assertTrue("Options should be equal", opt2.equals(opt1)); //$NON-NLS-1$
    }
View Full Code Here

        assertTrue("Options should be equal", opt1.equals(opt2)); //$NON-NLS-1$
        assertTrue("Options should be equal", opt2.equals(opt1)); //$NON-NLS-1$
    }

    public void testOptionEquals2() {
        Option opt1 = new Option();
        opt1.addDependentGroup("abc"); //$NON-NLS-1$
       
        Option opt2 = new Option();
        opt2.addDependentGroup("abc"); //$NON-NLS-1$
       
        assertTrue("Options should be equal", opt1.equals(opt2)); //$NON-NLS-1$
        assertTrue("Options should be equal", opt2.equals(opt1)); //$NON-NLS-1$
    }
View Full Code Here

        assertTrue("Options should be equal", opt1.equals(opt2)); //$NON-NLS-1$
        assertTrue("Options should be equal", opt2.equals(opt1)); //$NON-NLS-1$
    }

    public void testOptionEquals4() {
        Option opt1 = new Option();
        opt1.addNotDependentGroup("abc"); //$NON-NLS-1$
       
        Option opt2 = new Option();
        opt2.addNotDependentGroup("abc"); //$NON-NLS-1$
       
        assertTrue("Options should be equal", opt1.equals(opt2)); //$NON-NLS-1$
        assertTrue("Options should be equal", opt2.equals(opt1)); //$NON-NLS-1$
    }
View Full Code Here

        assertTrue("Options should be equal", opt1.equals(opt2)); //$NON-NLS-1$
        assertTrue("Options should be equal", opt2.equals(opt1)); //$NON-NLS-1$
    }

    public void testOptionEquals5() {
        Option opt1 = new Option();
        opt1.addDependentGroup("abc"); //$NON-NLS-1$
        opt1.addNotDependentGroup("xyz"); //$NON-NLS-1$
        Option opt2 = new Option();
        opt2.addDependentGroup("abc"); //$NON-NLS-1$
        opt2.addNotDependentGroup("xyz"); //$NON-NLS-1$
       
        assertTrue("Options should be equal", opt1.equals(opt2)); //$NON-NLS-1$
        assertTrue("Options should be equal", opt2.equals(opt1)); //$NON-NLS-1$
    }
View Full Code Here

        assertTrue("Options should be equal", opt1.equals(opt2)); //$NON-NLS-1$
        assertTrue("Options should be equal", opt2.equals(opt1)); //$NON-NLS-1$
    }

    public void testOptionEqualsFail2() {
        Option opt1 = new Option();
        opt1.addDependentGroup("abc"); //$NON-NLS-1$
       
        Option opt2 = new Option();
       
        assertTrue("Options should not be equal", ! opt1.equals(opt2)); //$NON-NLS-1$
        assertTrue("Options should not be equal", ! opt2.equals(opt1)); //$NON-NLS-1$
    }
View Full Code Here

        assertTrue("Options should not be equal", ! opt1.equals(opt2)); //$NON-NLS-1$
        assertTrue("Options should not be equal", ! opt2.equals(opt1)); //$NON-NLS-1$
    }
   
    public void testObjectEquivalence1() {
        Option opt1 = new Option();
        opt1.addDependentGroup("abc"); //$NON-NLS-1$

        UnitTestUtil.helpTestEquivalence(0, opt1, opt1);   
    }
View Full Code Here

        UnitTestUtil.helpTestEquivalence(0, opt1, opt1);   
    }
   
    public void testObjectEquivalence2() {
        Option opt1 = new Option();
        opt1.addNotDependentGroup("abc"); //$NON-NLS-1$

        UnitTestUtil.helpTestEquivalence(0, opt1, opt1);   
    }
View Full Code Here

        UnitTestUtil.helpTestEquivalence(0, opt1, opt1);   
    }
   
    public void testObjectEquivalence3() {
        Option opt1 = new Option();
        opt1.addDependentGroup("abc"); //$NON-NLS-1$
        opt1.addNotDependentGroup("xyz"); //$NON-NLS-1$

        UnitTestUtil.helpTestEquivalence(0, opt1, opt1);   
    }
View Full Code Here

TOP

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

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.