Examples of Args1


Examples of io.airlift.airline.args.Args1

{
    @Test
    public void simpleArgs()
            throws ParseException
    {
        Args1 args = singleCommandParser(Args1.class).parse("Args1",
                "-debug", "-log", "2", "-float", "1.2", "-double", "1.3", "-bigdecimal", "1.4",
                "-groups", "unit", "a", "b", "c");

        assertTrue(args.debug);
        assertEquals(args.verbose.intValue(), 2);
View Full Code Here

Examples of io.airlift.airline.args.Args1

    @Test
    public void equalsArgs()
            throws ParseException
    {
        Args1 args = singleCommandParser(Args1.class).parse("Args1",
                "-debug", "-log=2", "-float=1.2", "-double=1.3", "-bigdecimal=1.4",
                "-groups=unit", "a", "b", "c");

        assertTrue(args.debug);
        assertEquals(args.verbose.intValue(), 2);
View Full Code Here

Examples of io.airlift.airline.args.Args1

    /**
     * Required options with multiple names should work with all names.
     */
    private void multipleNames(String option)
    {
        Args1 args = singleCommandParser(Args1.class).parse("Args1", option, "2");
        assertEquals(args.verbose.intValue(), 2);
    }
View Full Code Here

Examples of io.airlift.airline.args.Args1

    }

    @Test
    public void negativeNumber()
    {
        Args1 a = singleCommandParser(Args1.class).parse("Args1", "-verbose", "-3");
        assertEquals(a.verbose.intValue(), -3);
    }
View Full Code Here

Examples of io.airlift.airline.args.Args1

{
    @Test
    public void simpleArgs()
            throws ParseException
    {
        Args1 args = singleCommand(Args1.class).parse(
                "-debug", "-log", "2", "-float", "1.2", "-double", "1.3", "-bigdecimal", "1.4",
                "-groups", "unit", "a", "b", "c");

        assertTrue(args.debug);
        assertEquals(args.verbose.intValue(), 2);
View Full Code Here

Examples of io.airlift.airline.args.Args1

    @Test
    public void equalsArgs()
            throws ParseException
    {
        Args1 args = singleCommand(Args1.class).parse(
                "-debug", "-log=2", "-float=1.2", "-double=1.3", "-bigdecimal=1.4",
                "-groups=unit", "a", "b", "c");

        assertTrue(args.debug);
        assertEquals(args.verbose.intValue(), 2);
View Full Code Here

Examples of io.airlift.airline.args.Args1

    /**
     * Required options with multiple names should work with all names.
     */
    private void multipleNames(String option)
    {
        Args1 args = singleCommand(Args1.class).parse(option, "2");
        assertEquals(args.verbose.intValue(), 2);
    }
View Full Code Here

Examples of io.airlift.airline.args.Args1

    }

    @Test
    public void negativeNumber()
    {
        Args1 a = singleCommand(Args1.class).parse("-verbose", "-3");
        assertEquals(a.verbose.intValue(), -3);
    }
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.