@Test public void testComputeTargetsSingleEndpoint() throws Exception { final CliParser cliParser = new CliParser(toArray(singleEndpointArgs)); final List<Target> targets = cliParser.getTargets(); final List<Target> expectedTargets = ImmutableList.of(Target.from(URI.create(ENDPOINTS[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();  }