@Test public void testComputeTargetsSingleDomain() throws Exception { final String[] args = { SUBCOMMAND, "-d", DOMAINS[0], SERVICE }; final CliParser cliParser = new CliParser(args); final List<Target> targets = cliParser.getTargets(); final List<Target> expectedTargets = Target.from(SRV, ImmutableList.of(DOMAINS[0])); assertEquals(expectedTargets, targets); }
public List<Target> getTargets() { return targets; }
CliParser { public List<Target> getTargets() { return targets; } }
CliParser { public List<Target> getTargets() { return targets; } CliParser(final String... args); }
CliParser { public List<Target> getTargets() { return targets; } CliParser(final String... args); List<Target> getTargets(); String getUsername(); boolean getJson(); Namespace getNamespace(); CliCommand getCommand(); LoggingConfig getLoggingConfig(); }
CliParser { public List<Target> getTargets() { return targets; } CliParser(final String... args); List<Target> getTargets(); String getUsername(); boolean getJson(); Namespace getNamespace(); CliCommand getCommand(); LoggingConfig getLoggingConfig();  }