Package org.modeshape.sequencer.ddl.node

Examples of org.modeshape.sequencer.ddl.node.AstNode.childrenWithName()


        assertThat(alterColumnNode.getName(), is("bar"));
        assertMixinType(alterColumnNode, TeiidDdlLexicon.AlterOptions.COLUMN);
        assertThat(alterColumnNode.getProperty(TeiidDdlLexicon.AlterOptions.REFERENCE), is(notNullValue()));

        // option
        final List<AstNode> options = alterColumnNode.childrenWithName("x");
        assertThat(options.size(), is(1));
        assertProperty(options.get(0), StandardDdlLexicon.VALUE, "y");
    }

    @Test
View Full Code Here


        assertThat(alterParamNode.getName(), is("p1"));
        assertMixinType(alterParamNode, TeiidDdlLexicon.AlterOptions.PARAMETER);
        assertThat(alterParamNode.getProperty(TeiidDdlLexicon.AlterOptions.REFERENCE), is(notNullValue()));

        // option
        final List<AstNode> options = alterParamNode.childrenWithName("x");
        assertThat(options.size(), is(1));
        assertProperty(options.get(0), StandardDdlLexicon.VALUE, "y");
    }

}
View Full Code Here

        // 2 params, 1 result set, 7 options
        assertThat(functionNode.getChildCount(), is(10));

        { // first param
            assertThat(functionNode.childrenWithName(flagParam).size(), is(1));
            assertProperty(functionNode.childrenWithName(flagParam).get(0),
                           StandardDdlLexicon.DATATYPE_NAME,
                           TeiidDataType.BOOLEAN.toDdl());
        }
View Full Code Here

        // 2 params, 1 result set, 7 options
        assertThat(functionNode.getChildCount(), is(10));

        { // first param
            assertThat(functionNode.childrenWithName(flagParam).size(), is(1));
            assertProperty(functionNode.childrenWithName(flagParam).get(0),
                           StandardDdlLexicon.DATATYPE_NAME,
                           TeiidDataType.BOOLEAN.toDdl());
        }

        { // second param
View Full Code Here

                           StandardDdlLexicon.DATATYPE_NAME,
                           TeiidDataType.BOOLEAN.toDdl());
        }

        { // second param
            assertThat(functionNode.childrenWithName(msgParam).size(), is(1));
            assertProperty(functionNode.childrenWithName(msgParam).get(0),
                           StandardDdlLexicon.DATATYPE_NAME,
                           TeiidDataType.VARCHAR.toDdl());
        }
View Full Code Here

                           TeiidDataType.BOOLEAN.toDdl());
        }

        { // second param
            assertThat(functionNode.childrenWithName(msgParam).size(), is(1));
            assertProperty(functionNode.childrenWithName(msgParam).get(0),
                           StandardDdlLexicon.DATATYPE_NAME,
                           TeiidDataType.VARCHAR.toDdl());
        }

        { // options
View Full Code Here

                           StandardDdlLexicon.DATATYPE_NAME,
                           TeiidDataType.VARCHAR.toDdl());
        }

        { // options
            assertProperty(functionNode.childrenWithName(option1.getKey()).get(0), StandardDdlLexicon.VALUE, option1.getValue());
            assertProperty(functionNode.childrenWithName(option2.getKey()).get(0), StandardDdlLexicon.VALUE, option2.getValue());
            assertProperty(functionNode.childrenWithName(option3.getKey()).get(0), StandardDdlLexicon.VALUE, option3.getValue());
            assertProperty(functionNode.childrenWithName(option4.getKey()).get(0), StandardDdlLexicon.VALUE, option4.getValue());
            assertProperty(functionNode.childrenWithName(option5.getKey()).get(0), StandardDdlLexicon.VALUE, option5.getValue());
            assertProperty(functionNode.childrenWithName(option6.getKey()).get(0), StandardDdlLexicon.VALUE, option6.getValue());
View Full Code Here

                           TeiidDataType.VARCHAR.toDdl());
        }

        { // options
            assertProperty(functionNode.childrenWithName(option1.getKey()).get(0), StandardDdlLexicon.VALUE, option1.getValue());
            assertProperty(functionNode.childrenWithName(option2.getKey()).get(0), StandardDdlLexicon.VALUE, option2.getValue());
            assertProperty(functionNode.childrenWithName(option3.getKey()).get(0), StandardDdlLexicon.VALUE, option3.getValue());
            assertProperty(functionNode.childrenWithName(option4.getKey()).get(0), StandardDdlLexicon.VALUE, option4.getValue());
            assertProperty(functionNode.childrenWithName(option5.getKey()).get(0), StandardDdlLexicon.VALUE, option5.getValue());
            assertProperty(functionNode.childrenWithName(option6.getKey()).get(0), StandardDdlLexicon.VALUE, option6.getValue());
            assertProperty(functionNode.childrenWithName(option7.getKey()).get(0), StandardDdlLexicon.VALUE, option7.getValue());
View Full Code Here

        }

        { // options
            assertProperty(functionNode.childrenWithName(option1.getKey()).get(0), StandardDdlLexicon.VALUE, option1.getValue());
            assertProperty(functionNode.childrenWithName(option2.getKey()).get(0), StandardDdlLexicon.VALUE, option2.getValue());
            assertProperty(functionNode.childrenWithName(option3.getKey()).get(0), StandardDdlLexicon.VALUE, option3.getValue());
            assertProperty(functionNode.childrenWithName(option4.getKey()).get(0), StandardDdlLexicon.VALUE, option4.getValue());
            assertProperty(functionNode.childrenWithName(option5.getKey()).get(0), StandardDdlLexicon.VALUE, option5.getValue());
            assertProperty(functionNode.childrenWithName(option6.getKey()).get(0), StandardDdlLexicon.VALUE, option6.getValue());
            assertProperty(functionNode.childrenWithName(option7.getKey()).get(0), StandardDdlLexicon.VALUE, option7.getValue());
        }
View Full Code Here

        { // options
            assertProperty(functionNode.childrenWithName(option1.getKey()).get(0), StandardDdlLexicon.VALUE, option1.getValue());
            assertProperty(functionNode.childrenWithName(option2.getKey()).get(0), StandardDdlLexicon.VALUE, option2.getValue());
            assertProperty(functionNode.childrenWithName(option3.getKey()).get(0), StandardDdlLexicon.VALUE, option3.getValue());
            assertProperty(functionNode.childrenWithName(option4.getKey()).get(0), StandardDdlLexicon.VALUE, option4.getValue());
            assertProperty(functionNode.childrenWithName(option5.getKey()).get(0), StandardDdlLexicon.VALUE, option5.getValue());
            assertProperty(functionNode.childrenWithName(option6.getKey()).get(0), StandardDdlLexicon.VALUE, option6.getValue());
            assertProperty(functionNode.childrenWithName(option7.getKey()).get(0), StandardDdlLexicon.VALUE, option7.getValue());
        }
    }
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.