Examples of registerParameter()


Examples of com.martiansoftware.jsap.JSAP.registerParameter()

                  .setDefault("A")
                  .setShortFlag('m')
                  .setLongFlag(JSAP.NO_LONGFLAG);

  opt7.setHelp("The method used to calculate the metrics. Use 'A' for average, use 'B' for best.");
  jsap.registerParameter(opt7);

  Switch opt8 = new Switch(Config.VERBOSE.toString()).setDefault("false")
                .setShortFlag('v')
                .setLongFlag(JSAP.NO_LONGFLAG);
View Full Code Here

Examples of com.martiansoftware.jsap.JSAP.registerParameter()

  Switch opt8 = new Switch(Config.VERBOSE.toString()).setDefault("false")
                .setShortFlag('v')
                .setLongFlag(JSAP.NO_LONGFLAG);

  opt8.setHelp("Show verbose data during run.");
  jsap.registerParameter(opt8);

  QualifiedSwitch opt9 = (QualifiedSwitch) new QualifiedSwitch(Config.CONFIDENCE.toString()).setShortFlag('c')
                          .setLongFlag("confidence")
                          .setList(JSAP.NOT_LIST)
                          .setStringParser(JSAP.DOUBLE_PARSER)
View Full Code Here

Examples of com.martiansoftware.jsap.JSAP.registerParameter()

                          .setLongFlag("confidence")
                          .setList(JSAP.NOT_LIST)
                          .setStringParser(JSAP.DOUBLE_PARSER)
                          .setRequired(false);
  opt9.setHelp("Calculate and show confidence intervals");
  jsap.registerParameter(opt9);

  return jsap;
    }
}
View Full Code Here

Examples of com.martiansoftware.jsap.SimpleJSAP.registerParameter()

      args = new String[0];
    }

    // Initialize the argument parser
    SimpleJSAP jsap = new SimpleJSAP("java -jar Mockey.jar", "Starts a Jetty server running Mockey");
    jsap.registerParameter(new FlaggedOption(ARG_PORT, JSAP.INTEGER_PARSER, "8080", JSAP.NOT_REQUIRED, 'p',
        ARG_PORT, "port to run Jetty on"));
    jsap.registerParameter(new FlaggedOption(BSC.FILE, JSAP.STRING_PARSER,
        MockeyXmlFileManager.MOCK_SERVICE_DEFINITION, JSAP.NOT_REQUIRED, 'f', BSC.FILE,
        "Relative path to a mockey-definitions file to initialize Mockey, relative to where you're starting Mockey"));
View Full Code Here

Examples of com.martiansoftware.jsap.SimpleJSAP.registerParameter()

    // Initialize the argument parser
    SimpleJSAP jsap = new SimpleJSAP("java -jar Mockey.jar", "Starts a Jetty server running Mockey");
    jsap.registerParameter(new FlaggedOption(ARG_PORT, JSAP.INTEGER_PARSER, "8080", JSAP.NOT_REQUIRED, 'p',
        ARG_PORT, "port to run Jetty on"));
    jsap.registerParameter(new FlaggedOption(BSC.FILE, JSAP.STRING_PARSER,
        MockeyXmlFileManager.MOCK_SERVICE_DEFINITION, JSAP.NOT_REQUIRED, 'f', BSC.FILE,
        "Relative path to a mockey-definitions file to initialize Mockey, relative to where you're starting Mockey"));

    jsap.registerParameter(new FlaggedOption(BSC.URL, JSAP.STRING_PARSER, "", JSAP.NOT_REQUIRED, 'u', BSC.URL,
        "URL to a mockey-definitions file to initialize Mockey"));
View Full Code Here

Examples of com.martiansoftware.jsap.SimpleJSAP.registerParameter()

        ARG_PORT, "port to run Jetty on"));
    jsap.registerParameter(new FlaggedOption(BSC.FILE, JSAP.STRING_PARSER,
        MockeyXmlFileManager.MOCK_SERVICE_DEFINITION, JSAP.NOT_REQUIRED, 'f', BSC.FILE,
        "Relative path to a mockey-definitions file to initialize Mockey, relative to where you're starting Mockey"));

    jsap.registerParameter(new FlaggedOption(BSC.URL, JSAP.STRING_PARSER, "", JSAP.NOT_REQUIRED, 'u', BSC.URL,
        "URL to a mockey-definitions file to initialize Mockey"));

    jsap.registerParameter(new FlaggedOption(BSC.TRANSIENT, JSAP.BOOLEAN_PARSER, "true", JSAP.NOT_REQUIRED, 't',
        BSC.TRANSIENT, "Read only mode if set to true, no updates are made to the file system."));
View Full Code Here

Examples of com.martiansoftware.jsap.SimpleJSAP.registerParameter()

        "Relative path to a mockey-definitions file to initialize Mockey, relative to where you're starting Mockey"));

    jsap.registerParameter(new FlaggedOption(BSC.URL, JSAP.STRING_PARSER, "", JSAP.NOT_REQUIRED, 'u', BSC.URL,
        "URL to a mockey-definitions file to initialize Mockey"));

    jsap.registerParameter(new FlaggedOption(BSC.TRANSIENT, JSAP.BOOLEAN_PARSER, "true", JSAP.NOT_REQUIRED, 't',
        BSC.TRANSIENT, "Read only mode if set to true, no updates are made to the file system."));

    jsap.registerParameter(new FlaggedOption(
        BSC.DEFINITION_LOCATION,
        JSAP.STRING_PARSER,
View Full Code Here

Examples of com.martiansoftware.jsap.SimpleJSAP.registerParameter()

        "URL to a mockey-definitions file to initialize Mockey"));

    jsap.registerParameter(new FlaggedOption(BSC.TRANSIENT, JSAP.BOOLEAN_PARSER, "true", JSAP.NOT_REQUIRED, 't',
        BSC.TRANSIENT, "Read only mode if set to true, no updates are made to the file system."));

    jsap.registerParameter(new FlaggedOption(
        BSC.DEFINITION_LOCATION,
        JSAP.STRING_PARSER,
        "",
        JSAP.NOT_REQUIRED,
        'l',
View Full Code Here

Examples of com.martiansoftware.jsap.SimpleJSAP.registerParameter()

        JSAP.NOT_REQUIRED,
        'l',
        BSC.DEFINITION_LOCATION,
        "Absolute or relative path/location for Mockey to save it's definitions and configuration. By default, relative to where Mockey is started. "));

    jsap.registerParameter(new FlaggedOption(BSC.FILTERTAG, JSAP.STRING_PARSER, "", JSAP.NOT_REQUIRED, 'F',
        BSC.FILTERTAG,
        "Filter tag for services and scenarios, useful for 'only use information with this tag'. "));

    jsap.registerParameter(new FlaggedOption(BSC.HEADLESS, JSAP.BOOLEAN_PARSER, "false", JSAP.NOT_REQUIRED, 'H',
        BSC.HEADLESS,
View Full Code Here

Examples of com.martiansoftware.jsap.SimpleJSAP.registerParameter()

    jsap.registerParameter(new FlaggedOption(BSC.FILTERTAG, JSAP.STRING_PARSER, "", JSAP.NOT_REQUIRED, 'F',
        BSC.FILTERTAG,
        "Filter tag for services and scenarios, useful for 'only use information with this tag'. "));

    jsap.registerParameter(new FlaggedOption(BSC.HEADLESS, JSAP.BOOLEAN_PARSER, "false", JSAP.NOT_REQUIRED, 'H',
        BSC.HEADLESS,
        "Headless flag. Default is 'false'. Set to 'true' if you do not want Mockey to spawn a browser thread upon startup."));

    jsap.registerParameter(new Switch(BSC.VERSION, 'v', BSC.VERSION,
        "Prints out Mockey's version (semantic versioning http://semver.org/)"));
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.