VeraCliArgParser { public boolean extractFeatures() { return this.features | this.isPolicy(); }  boolean showVersion(); boolean listProfiles(); boolean isVerbose(); int maxFailuresDisplayed(); int maxFailures(); boolean fixMetadata(); String prefix(); String saveFolder(); Boolean nonPdfExt(); boolean isRecurse(); boolean isServerMode(); boolean isHelp(); FormatOption getFormat(); boolean logPassed(); boolean extractFeatures(); PDFAFlavour getFlavour(); File getProfileFile(); File getPolicyFile(); boolean isPolicy(); File getVeraCLIPath(); int getNumberOfProcesses(); List<String> getPdfPaths(); boolean isValidationOff(); ValidatorConfig validatorConfig(); MetadataFixerConfig fixerConfig(); VeraAppConfig appConfig(final VeraAppConfig base); ProcessorConfig processorConfig(final ProcessType procType, FeatureExtractorConfig featConfig,
										   PluginsCollectionConfig plugConfig); static List<String> getBaseVeraPDFParameters(VeraCliArgParser cliArgParser);  }
@Test public final void testExtractDefault() { assertFalse(VeraCliArgParser.DEFAULT_ARGS.extractFeatures()); VeraCliArgParser parser = new VeraCliArgParser(); JCommander jCommander = initialiseJCommander(parser); jCommander.parse(new String[] {}); assertTrue(parser.extractFeatures() == VeraCliArgParser.DEFAULT_ARGS .extractFeatures()); parser = new VeraCliArgParser(); jCommander = initialiseJCommander(parser); jCommander.parse(new String[] { "-l", "--flavour", "1a", "-h" }); assertTrue(parser.extractFeatures() == VeraCliArgParser.DEFAULT_ARGS .extractFeatures()); }
@Test public final void testExtractFlag() { VeraCliArgParser parser = new VeraCliArgParser(); JCommander jCommander = initialiseJCommander(parser); jCommander.parse(new String[] { "-x" }); assertFalse(parser.extractFeatures() == VeraCliArgParser.DEFAULT_ARGS .extractFeatures()); parser = new VeraCliArgParser(); jCommander = initialiseJCommander(parser); jCommander.parse(new String[] { "-x", "--format", "xml", "-h" }); assertFalse(parser.extractFeatures() == VeraCliArgParser.DEFAULT_ARGS .extractFeatures()); }
@Test public final void testExtractOption() { VeraCliArgParser parser = new VeraCliArgParser(); JCommander jCommander = initialiseJCommander(parser); jCommander.parse(new String[] { "--extract" }); assertFalse(parser.extractFeatures() == VeraCliArgParser.DEFAULT_ARGS .extractFeatures()); parser = new VeraCliArgParser(); jCommander = initialiseJCommander(parser); jCommander.parse(new String[] { "-l", "--extract", "--flavour", "3b" }); assertFalse(parser.extractFeatures() == VeraCliArgParser.DEFAULT_ARGS .extractFeatures()); }