Package org.teiid.query.sql.lang

Examples of org.teiid.query.sql.lang.Option.addNotDependentGroup()


        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


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

        UnitTestUtil.helpTestEquivalence(0, opt1, opt1);   
    }
   
    public void testObjectEquivalence3() {
View Full Code Here

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

        UnitTestUtil.helpTestEquivalence(0, opt1, opt1);   
    }
   
    public void testOptionEquals3() {
View Full Code Here

        assertTrue("Options should not be equal", ! opt2.equals(opt1)); //$NON-NLS-1$
    }
   
    public void testOptionEqualsFail6() {
        Option opt1 = new Option();
        opt1.addNotDependentGroup("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

    public void testOptionEqualsFail7() {
        Option opt1 = new Option();
        opt1.addDependentGroup("abc"); //$NON-NLS-1$
       
        Option opt2 = new Option();
        opt2.addNotDependentGroup("abc"); //$NON-NLS-1$
       
        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

    }

    public void testClone() {
        Option opt1 = new Option();
        opt1.addDependentGroup("abc"); //$NON-NLS-1$
        opt1.addNotDependentGroup("xyz"); //$NON-NLS-1$
        opt1.addNoCacheGroup("abc"); //$NON-NLS-1$
       
        Option opt2 = (Option) opt1.clone();
        UnitTestUtil.helpTestEquivalence(0, opt1, opt2);   
    }
View Full Code Here

    }
   
    public void testGetNotDependentGroups() {
        Option o = new Option();
        o.addDependentGroup("a"); //$NON-NLS-1$
        o.addNotDependentGroup("b"); //$NON-NLS-1$
        o.addNotDependentGroup("c"); //$NON-NLS-1$
       
        assertEquals(Arrays.asList(new Object[] {"b", "c"}), o.getNotDependentGroups()); //$NON-NLS-1$ //$NON-NLS-2$
    }
}
View Full Code Here

   
    public void testGetNotDependentGroups() {
        Option o = new Option();
        o.addDependentGroup("a"); //$NON-NLS-1$
        o.addNotDependentGroup("b"); //$NON-NLS-1$
        o.addNotDependentGroup("c"); //$NON-NLS-1$
       
        assertEquals(Arrays.asList(new Object[] {"b", "c"}), o.getNotDependentGroups()); //$NON-NLS-1$ //$NON-NLS-2$
    }
}
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.