From c088c25b09eb4d3ad83e7b959af955a7e767a716 Mon Sep 17 00:00:00 2001 From: Viktor Lofgren Date: Wed, 24 Jan 2024 12:50:41 +0100 Subject: [PATCH] (*) Fix broken test, clean up code --- .../db/src/test/java/nu/marginalia/db/DomainTypesTest.java | 4 ++-- code/libraries/braille-block-punch-cards/build.gradle | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/code/common/db/src/test/java/nu/marginalia/db/DomainTypesTest.java b/code/common/db/src/test/java/nu/marginalia/db/DomainTypesTest.java index 9b4f011c..d6490b1e 100644 --- a/code/common/db/src/test/java/nu/marginalia/db/DomainTypesTest.java +++ b/code/common/db/src/test/java/nu/marginalia/db/DomainTypesTest.java @@ -56,10 +56,10 @@ public class DomainTypesTest { 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"); - assertEquals(4, downloadedDomains.size()); + assertEquals(expectedDomains.size(), downloadedDomains.size()); assertEquals(Set.of(), Sets.symmetricDifference(expectedDomains, downloadedDomains)); } diff --git a/code/libraries/braille-block-punch-cards/build.gradle b/code/libraries/braille-block-punch-cards/build.gradle index e716f1c8..4d9c5997 100644 --- a/code/libraries/braille-block-punch-cards/build.gradle +++ b/code/libraries/braille-block-punch-cards/build.gradle @@ -10,9 +10,7 @@ java { dependencies { implementation libs.bundles.slf4j - implementation libs.notnull - implementation libs.fastutil testImplementation libs.bundles.slf4j.test