SmartlingFileUtils { public static String getOutputSourceFile(long batchNumber, String repositoryName, String prefix) { return String.format("%s/%05d_%s_source.xml", repositoryName, batchNumber, prefix); } private  SmartlingFileUtils(); static String getOutputSourceFile(long batchNumber, String repositoryName, String prefix); static String getOutputTargetFile(long batchNumber, String repositoryName, String prefix, String locale); static Pattern getFilePattern(String repositoryName); static Boolean isPluralFile(String fileUri);  }
@Test public void testGetOutputSourceFile() { assertThat(getOutputSourceFile(1, "repo-test", "singular")).isEqualTo("repo-test/00001_singular_source.xml"); assertThat(getOutputSourceFile(21, "repo-test", "singular")).isEqualTo("repo-test/00021_singular_source.xml"); assertThat(getOutputSourceFile(321, "repo-test", "singular")).isEqualTo("repo-test/00321_singular_source.xml"); assertThat(getOutputSourceFile(4321, "repo-test", "singular")).isEqualTo("repo-test/04321_singular_source.xml"); assertThat(getOutputSourceFile(54321, "repo-test", "singular")).isEqualTo("repo-test/54321_singular_source.xml"); assertThat(getOutputSourceFile(99999, "repo-test", "plural")).isEqualTo("repo-test/99999_plural_source.xml"); }