From 8edc7ac45ec1546cfc5bbbaa3ed7cbdd25d3b4e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20B=C3=BClte?= Date: Mon, 19 Aug 2024 12:08:14 +0200 Subject: [PATCH] Update test to inlude hbztags --- .../de/gwdg/metadataqa/marc/utils/MarcTagListerTest.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/test/java/de/gwdg/metadataqa/marc/utils/MarcTagListerTest.java b/src/test/java/de/gwdg/metadataqa/marc/utils/MarcTagListerTest.java index 35c5510f..39435a12 100644 --- a/src/test/java/de/gwdg/metadataqa/marc/utils/MarcTagListerTest.java +++ b/src/test/java/de/gwdg/metadataqa/marc/utils/MarcTagListerTest.java @@ -28,7 +28,7 @@ public void testListTag() { List> tags = MarcTagLister.listTags(); assertNotNull(tags); assertNotEquals(0, tags.size()); - assertEquals(457, tags.size()); + assertEquals(493, tags.size()); assertEquals("Tag010", tags.get(0).getSimpleName()); Map versionCounter = new HashMap<>(); Map versionCounter2 = new HashMap<>(); @@ -72,7 +72,7 @@ public void testListTag() { List testedVersions = List.of( MarcVersion.MARC21, MarcVersion.DNB, MarcVersion.FENNICA, MarcVersion.GENT, MarcVersion.NKCR, MarcVersion.OCLC, MarcVersion.SZTE, MarcVersion.KBR, MarcVersion.ZB, MarcVersion.BL, MarcVersion.MARC21NO, MarcVersion.UVA, - MarcVersion.B3KAT, MarcVersion.OGYK, + MarcVersion.B3KAT, MarcVersion.OGYK, MarcVersion.HBZ, MarcVersion.UNIMARC // special case ); for (MarcVersion version : MarcVersion.values()) { @@ -117,6 +117,9 @@ public void testListTag() { assertEquals( 12, (int) versionCounter2.get(MarcVersion.OGYK)); assertEquals( 12, (int) versionCounter.get("ogyktags")); + assertEquals( 36, (int) versionCounter2.get(MarcVersion.HBZ)); + assertEquals( 36, (int) versionCounter.get("hbztags")); + assertEquals(229, (int) versionCounter2.get(MarcVersion.MARC21)); assertEquals( 2, (int) versionCounter.get("holdings")); assertEquals( 49, (int) versionCounter.get("tags01x"));