EBCLIOptions { public boolean wantsActivityTypes() { return wantsActivityTypes; } EBCLIOptions(String[] args); List<LoggerConfig> getHistoLoggerConfigs(); List<LoggerConfig> getStatsLoggerConfigs(); List<LoggerConfig> getClassicHistoConfigs(); List<Cmd> getCommands(); boolean wantsShowScript(); boolean wantsVersionCoords(); boolean isWantsVersionShort(); boolean wantsActivityTypes(); boolean wantsTopicalHelp(); String wantsTopicalHelpFor(); boolean wantsBasicHelp(); boolean wantsAdvancedHelp(); boolean wantsEnableChart(); boolean wantsDockerMetrics(); int getReportInterval(); String wantsReportGraphiteTo(); String wantsMetricsPrefix(); String wantsMetricsForActivity(); String getSessionName(); Level wantsConsoleLogLevel(); String getProgressSpec(); String wantsReportCsvTo(); String getLogsDirectory(); int getLogsMax(); String getLogsLevel(); boolean wantsInputTypes(); boolean wantsMarkerTypes(); boolean wantsToDumpCyclelog(); boolean wantsToImportCycleLog(); String[] getCyclelogImportOptions(); String[] getCycleLogExporterOptions(); String getConsoleLoggingPattern(); Map<String, Level> getLogLevelOverrides(); void setHistoLoggerConfigs(String pattern, String file, String interval); static final String docoptFileName; }
@Test public void shouldRecognizeWantsActivityTypes() { EBCLIOptions opts = new EBCLIOptions(new String[]{"--list-activity-types"}); assertThat(opts.wantsActivityTypes()).isTrue(); opts = new EBCLIOptions(new String[]{"--version"}); assertThat(opts.wantsActivityTypes()).isFalse(); }