Skip to content

Commit

Permalink
SOLR-17575: Few comments in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Zagniotov committed Nov 27, 2024
1 parent ecaaccd commit 6183cde
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,7 @@ public void testAllowlistWithFallback() throws Exception {
parameters.add("langid.fallback", "en");
liProcessor = createLangIdProcessor(parameters);

// Make sure that empty language codes have been filtered out and others trimmed.
assertEquals(new HashSet<>(Arrays.asList("no", "en", "sv")), liProcessor.langAllowlist);
assertLang(
"no",
Expand Down Expand Up @@ -522,6 +523,7 @@ public void testAllowlistBackwardsCompatabilityWithLegacyAllowlist() throws Exce
parameters.add("langid.fallback", "en");
liProcessor = createLangIdProcessor(parameters);

// Make sure that empty language codes have been filtered out and others trimmed.
assertEquals(new HashSet<>(Arrays.asList("no", "en", "sv")), liProcessor.langAllowlist);
assertLang(
"no",
Expand All @@ -547,7 +549,7 @@ public void testAllowlistBackwardsCompatabilityWithLegacyAllowlist() throws Exce
"Maven",
"subject",
"Apache Maven är ett verktyg utvecklat av Apache Software Foundation och används inom systemutveckling av datorprogram i programspråket Java. Maven används för att automatiskt paketera (bygga) programfilerna till en distribuerbar enhet. Maven används inom samma område som Apache Ant men dess byggfiler är deklarativa till skillnad ifrån Ants skriptbaserade.");
// Based on our langid.allowlist config,
// Based on our legacy langid.whitelist config,
// the Thai document is an unknown language, thus, language detection must fall back to EN
assertLang(
"en",
Expand Down

0 comments on commit 6183cde

Please sign in to comment.