@Test void appendExtensionShouldReturnValueEndsWithExtension() { FileExtension fileExtension = new FileExtension("tar.gz"); assertThat(fileExtension.appendExtension("/local/james")) .endsWith(".tar.gz"); }
public String appendExtension(String filePath) { Preconditions.checkArgument(StringUtils.isNotBlank(filePath), "filePath cannot be null or blank"); return filePath + asFileSuffix(); }
FileExtension { public String appendExtension(String filePath) { Preconditions.checkArgument(StringUtils.isNotBlank(filePath), "filePath cannot be null or blank"); return filePath + asFileSuffix(); } }
FileExtension { public String appendExtension(String filePath) { Preconditions.checkArgument(StringUtils.isNotBlank(filePath), "filePath cannot be null or blank"); return filePath + asFileSuffix(); } @VisibleForTesting  FileExtension(String extension); }
FileExtension { public String appendExtension(String filePath) { Preconditions.checkArgument(StringUtils.isNotBlank(filePath), "filePath cannot be null or blank"); return filePath + asFileSuffix(); } @VisibleForTesting  FileExtension(String extension); static FileExtension of(String extension); String appendExtension(String filePath); String asFileSuffix(); String getExtension(); @Override final boolean equals(Object o); @Override final int hashCode(); }
FileExtension { public String appendExtension(String filePath) { Preconditions.checkArgument(StringUtils.isNotBlank(filePath), "filePath cannot be null or blank"); return filePath + asFileSuffix(); } @VisibleForTesting  FileExtension(String extension); static FileExtension of(String extension); String appendExtension(String filePath); String asFileSuffix(); String getExtension(); @Override final boolean equals(Object o); @Override final int hashCode(); static final FileExtension ZIP; }