Package org.apache.jsieve.parser.generated

Examples of org.apache.jsieve.parser.generated.ASTargument


    }

    public void testASTargumentTag() throws Exception {
        String tag = "Hugo";
        mock.expects(once()).method("argument").with(eq(tag));
        ASTargument argument = new ASTargument(SieveParserTreeConstants.JJTARGUMENTS);
        argument.setValue(new TagArgument(new Token(0, tag)));
        subject.start(argument);
        subject.end(argument);
    }
View Full Code Here


    }
   
    public void testASTargumentNumber() throws Exception {
        int number = 17;
        mock.expects(once()).method("argument").with(eq(number));
        ASTargument argument = new ASTargument(SieveParserTreeConstants.JJTARGUMENTS);
        argument.setValue(new NumberArgument(new Token(0, "17")));
        subject.start(argument);
        subject.end(argument);
    }
View Full Code Here

TOP

Related Classes of org.apache.jsieve.parser.generated.ASTargument

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.