(*) Fix broken test, clean up code
This commit is contained in:
parent
958d64720e
commit
c088c25b09
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user