Arguments { @Nonnull public List<URI> getResources() { return resources; }  @Nonnegative int getMaxFileSizeBytes(); @Nonnegative int getMaxRedirectHops(); @Nonnull Charset getDefaultCharset(); @Nonnull List<URI> getResources(); @Nonnull String getAgent(); boolean isHelpRequested(); @Nonnegative int getReadTimeoutMillis(); @Nonnull RobotsConfig buildRobotsConfig();  }
@Test public void givenSingleResource_whenInit_thenResourcesSizeOne() { jCommander.parse(array(FIRST_RESOURCE)); assertThat(arguments.getResources(), hasSize(1)); }
@Test public void givenTwoResources_whenInit_thenResourcesSizeTwo() { jCommander.parse(array(FIRST_RESOURCE, SECOND_RESOURCE)); assertThat(arguments.getResources(), hasSize(2)); }
@Test public void givenThreeResources_whenInit_thenResourcesSizeThree() { jCommander.parse(array(FIRST_RESOURCE, SECOND_RESOURCE, THIRD_RESOURCE)); assertThat(arguments.getResources(), hasSize(3)); }
@Test public void givenSingleResource_whenInit_thenResourcesContainExpected() { jCommander.parse(array(FIRST_RESOURCE)); assertThat(arguments.getResources(), contains(FIRST_RESOURCE_URI)); }
@Test public void givenIDNResource1_whenInit_thenResourcesContainExpected() { jCommander.parse(array(SECOND_RESOURCE)); assertThat(arguments.getResources(), contains(SECOND_RESOURCE_URI)); }
@Test public void givenIDNResource2_whenInit_thenResourcesContainExpected() { jCommander.parse(array(THIRD_RESOURCE)); assertThat(arguments.getResources(), contains(THIRD_RESOURCE_URI)); }
@Test public void givenTwoResources_whenInit_thenResourcesContainExpected() { jCommander.parse(array(FIRST_RESOURCE, SECOND_RESOURCE)); assertThat(arguments.getResources(), contains(FIRST_RESOURCE_URI, SECOND_RESOURCE_URI)); }
@Test public void givenThreeResources_whenInit_thenResourcesContainExpected() { jCommander.parse(array(FIRST_RESOURCE, SECOND_RESOURCE, THIRD_RESOURCE)); assertThat(arguments.getResources(), contains(FIRST_RESOURCE_URI, SECOND_RESOURCE_URI, THIRD_RESOURCE_URI)); }