CliArguments { public void setA(final String artifactTypes) { setWantedArtifactTypes(artifactTypes); } CliArguments(final DirectoryService directoryService); Path getOutputPath(); void setOutputFile(final String outputFile); void setF(final String outputFile); Optional<String> getCommand(); List<String> getInputs(); void setUnnamedValues(final List<String> unnamedValues); String getOutputFormat(); void setOutputFormat(final String outputFormat); void setO(final String outputFormat); ReportVerbosity getReportVerbosity(); void setReportVerbosity(final ReportVerbosity reportVerbosity); void setV(final ReportVerbosity reportVerbosity); Newline getNewline(); void setNewline(final Newline newline); void setN(final Newline newline); Set<String> getWantedArtifactTypes(); void setWantedArtifactTypes(final String artifactTypes); void setA(final String artifactTypes); Set<String> getWantedTags(); void setWantedTags(final String tags); void setT(final String tags); boolean getShowOrigin(); void setShowOrigin(final boolean showOrigin); void setS(final boolean showOrigin); static final String NO_TAGS_MARKER; }
@Test void testSetA() { final String value = "impl,utest"; this.arguments.setA(value); assertThat(AFTER_SETTER, this.arguments.getWantedArtifactTypes(), containsInAnyOrder("impl", "utest")); }