@Test public void addPathTest() { String result = new URIStringBuilder("http: .addPath("path/to") .addPath("file.html") .build(); assertThat(result).isEqualTo("http: }
public URIStringBuilder addPath(String... pathSectionArray) { if (pathSectionArray != null) { for (String pathSection : pathSectionArray) { this.pathSections.add(strip(pathSection, "/")); } } return this; }
URIStringBuilder { public URIStringBuilder addPath(String... pathSectionArray) { if (pathSectionArray != null) { for (String pathSection : pathSectionArray) { this.pathSections.add(strip(pathSection, "/")); } } return this; } }
URIStringBuilder { public URIStringBuilder addPath(String... pathSectionArray) { if (pathSectionArray != null) { for (String pathSection : pathSectionArray) { this.pathSections.add(strip(pathSection, "/")); } } return this; } URIStringBuilder(String uriString); }
URIStringBuilder { public URIStringBuilder addPath(String... pathSectionArray) { if (pathSectionArray != null) { for (String pathSection : pathSectionArray) { this.pathSections.add(strip(pathSection, "/")); } } return this; } URIStringBuilder(String uriString); URIStringBuilder addPath(String... pathSectionArray); String build(); }
URIStringBuilder { public URIStringBuilder addPath(String... pathSectionArray) { if (pathSectionArray != null) { for (String pathSection : pathSectionArray) { this.pathSections.add(strip(pathSection, "/")); } } return this; } URIStringBuilder(String uriString); URIStringBuilder addPath(String... pathSectionArray); String build();  }