Package org.jnode.shell.syntax

Examples of org.jnode.shell.syntax.AlternativesSyntax.format()


        Test test = new Test();
        Syntax syntax1 =
                new AlternativesSyntax(new OptionSyntax("intArg", 'i'), new OptionSyntax("fileArg",
                        'f'), new OptionSyntax("flagArg", "xxx"));
        Assert.assertEquals("( -i <intArg> ) | ( -f <fileArg> ) | --xxx",
                syntax1.format(test.getArgumentBundle()));
    }

    @org.junit.Test
    public void testOne() throws Exception {
        TestShell shell = new TestShell();
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.