SmartlingFileUtils { public static String getOutputTargetFile(long batchNumber, String repositoryName, String prefix, String locale) { return String.format("%s/%05d_%s_%s.xml", repositoryName, batchNumber, prefix, locale); } 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 testGetTargetSourceFile() { assertThat(getOutputTargetFile(2, "repo-test", "singular", "es-CL")).isEqualTo("repo-test/00002_singular_es-CL.xml"); assertThat(getOutputTargetFile(32, "repo-test", "singular", "en-US")).isEqualTo("repo-test/00032_singular_en-US.xml"); assertThat(getOutputTargetFile(432, "repo-test", "singular", "en-US")).isEqualTo("repo-test/00432_singular_en-US.xml"); assertThat(getOutputTargetFile(5432, "repo-test", "singular", "en-US")).isEqualTo("repo-test/05432_singular_en-US.xml"); assertThat(getOutputTargetFile(65432, "repo-test", "singular", "en-US")).isEqualTo("repo-test/65432_singular_en-US.xml"); assertThat(getOutputTargetFile(99999, "repo", "plural", "es-MX")).isEqualTo("repo/99999_plural_es-MX.xml"); }