(*) Fix broken test, clean up code

This commit is contained in:
Viktor Lofgren 2024-01-24 12:50:41 +01:00
parent 958d64720e
commit c088c25b09
2 changed files with 2 additions and 4 deletions

View File

@ -56,10 +56,10 @@ public class DomainTypesTest {
var downloadedDomains = new HashSet<>(domainTypes.getAllDomainsByType(DomainTypes.Type.TEST)); var downloadedDomains = new HashSet<>(domainTypes.getAllDomainsByType(DomainTypes.Type.TEST));
var expectedDomains = Set.of("www.marginalia.nu", "search.marginalia.nu", var expectedDomains = Set.of("www.marginalia.nu", "search.marginalia.nu", "docs.marginalia.nu",
"encyclopedia.marginalia.nu", "memex.marginalia.nu"); "encyclopedia.marginalia.nu", "memex.marginalia.nu");
assertEquals(4, downloadedDomains.size()); assertEquals(expectedDomains.size(), downloadedDomains.size());
assertEquals(Set.of(), Sets.symmetricDifference(expectedDomains, downloadedDomains)); assertEquals(Set.of(), Sets.symmetricDifference(expectedDomains, downloadedDomains));
} }

View File

@ -10,9 +10,7 @@ java {
dependencies { dependencies {
implementation libs.bundles.slf4j implementation libs.bundles.slf4j
implementation libs.notnull implementation libs.notnull
implementation libs.fastutil implementation libs.fastutil
testImplementation libs.bundles.slf4j.test testImplementation libs.bundles.slf4j.test