Package com.volantis.xml.expression.sequence

Examples of com.volantis.xml.expression.sequence.Sequence


     * Sequence of one "true" StringValue item with
     * @throws Exception if an error occurs
     */
    public void testFnBooleanSequenceTrueStringItem() throws Exception {

        Sequence seq = factory.createStringValue("true").getSequence();
        doTestFnBoolean(seq, true);
    }
View Full Code Here


     * Sequence of one "1" StringValue item with
     * @throws Exception if an error occurs
     */
    public void testFnBooleanSequence1StringItem() throws Exception {

        Sequence seq = factory.createStringValue("1").getSequence();
        doTestFnBoolean(seq, true);
    }
View Full Code Here

     * Sequence of one "false" StringValue item with
     * @throws Exception if an error occurs
     */
    public void testFnBooleanSequenceFalseStringItem() throws Exception {

        Sequence seq = factory.createStringValue("false").getSequence();
        doTestFnBoolean(seq, false);
    }
View Full Code Here

     * Sequence of one "0" StringValue item with
     * @throws Exception if an error occurs
     */
    public void testFnBooleanSequence0StringItem() throws Exception {

        Sequence seq = factory.createStringValue("0").getSequence();
        doTestFnBoolean(seq, false);
    }
View Full Code Here

     * Sequence arbitary literal StringValue item with
     * @throws Exception if an error occurs
     */
    public void testFnBooleanSequenceStringItem() throws Exception {

        Sequence seq = factory.createStringValue("fred").getSequence();
        try {
            doTestFnBoolean(seq, false);
            fail("Invalid Lexical Value should result in exception");
        } catch (ExpressionException e) {
            // expected condition
View Full Code Here

     * Tests the {@link PipelineExpressionHelper#fnNumber} method with a Sequence
     * of one IntValue item
     * @throws Exception if an error occurs
     */
    public void testNumberWithIntValueItem() throws Exception {
        Sequence seq = factory.createIntValue(9).getSequence();
        doTestNumber(seq, 9);
    }
View Full Code Here

     * Tests the {@link PipelineExpressionHelper#fnNumber} method with a Sequence
     * of one IntValue item
     * @throws Exception if an error occurs
     */
    public void testNumberWithDoubleValueItem() throws Exception {
        Sequence seq = factory.createDoubleValue(9.9).getSequence();
        doTestNumber(seq, 9.9);
    }
View Full Code Here

     * Tests the {@link PipelineExpressionHelper#fnNumber} method with a Sequence
     * of one "true" BooleanValue Item
     * @throws Exception if an error occurs
     */
    public void testNumberWithTrueBooleanValueItem() throws Exception {
        Sequence seq = BooleanValue.TRUE.getSequence();
        doTestNumber(seq, 1.0);
    }
View Full Code Here

     * Tests the {@link PipelineExpressionHelper#fnNumber} method with a Sequence
     * of one "false" BooleanValue Item
     * @throws Exception if an error occurs
     */
    public void testNumberWithFalseBooleanValueItem() throws Exception {
        Sequence seq = BooleanValue.FALSE.getSequence();
        doTestNumber(seq, 0.0);
    }
View Full Code Here

     * Tests the {@link PipelineExpressionHelper#fnNumber} method with a Sequence
     * of one "inf" StringValue Item
     * @throws Exception if an error occurs
     */
    public void testNumberWithInfStringValueItem() throws Exception {
        Sequence seq = factory.createStringValue("inf").getSequence();
        doTestNumber(seq, Double.POSITIVE_INFINITY);
    }
View Full Code Here

TOP

Related Classes of com.volantis.xml.expression.sequence.Sequence

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.