Skip to content

Commit

Permalink
Remove unused parameter "domain"
Browse files Browse the repository at this point in the history
  • Loading branch information
André Laugks committed Jun 11, 2024
1 parent a03ee25 commit 108d819
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ void test_getTransUnits() {
void test_parseError() {
var xliffCatalogBuilder = this.getXliffCatalogBuilder(
new HashSet<>(List.of("fixtures/parse_error.xliff")),
Locale.forLanguageTag("en"),
"message"
Locale.forLanguageTag("en")
);

assertThrows(
Expand Down Expand Up @@ -71,8 +70,7 @@ void test_noXliffDocument() {
void test_versionNotSupported() {
var xliffCatalogBuilder = this.getXliffCatalogBuilder(
new HashSet<>(List.of("fixtures/xliff10.xliff")),
Locale.forLanguageTag("en"),
"message"
Locale.forLanguageTag("en")
);

XliffMessageSourceVersionSupportException exception = assertThrows(
Expand All @@ -87,8 +85,7 @@ void test_versionNotSupported() {
void test_versionSupported(String ressourcePath, String domain, String expected) {
var transUnits = this.getXliffCatalogBuilder(
new HashSet<>(List.of(ressourcePath)),
Locale.forLanguageTag("en"),
domain
Locale.forLanguageTag("en")
).getTransUnits();

assertEquals(
Expand All @@ -105,7 +102,7 @@ private static Stream<Arguments> dataProvider_loadVersions() {
);
}

private XliffCatalog getXliffCatalogBuilder(Set<String> files, Locale locale, String domain) {
private XliffCatalog getXliffCatalogBuilder(Set<String> files, Locale locale) {
return new XliffCatalog(
files,
List.of("xlf", "xliff"),
Expand Down

0 comments on commit 108d819

Please sign in to comment.