From c7c2de7a16b2c87e67c8e08ee69bef590305104f Mon Sep 17 00:00:00 2001 From: "michele.artini" Date: Wed, 22 Sep 2021 14:42:41 +0200 Subject: [PATCH] merge master --- apps/dnet-directindex-api/pom.xml | 2 +- .../directindex/OpenAIRESubmitterUtilsTest.java | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/apps/dnet-directindex-api/pom.xml b/apps/dnet-directindex-api/pom.xml index 97b42c85..3531209b 100644 --- a/apps/dnet-directindex-api/pom.xml +++ b/apps/dnet-directindex-api/pom.xml @@ -6,7 +6,7 @@ eu.dnetlib.dhp apps - 3.1.9-SNAPSHOT + 3.2.1-SNAPSHOT ../ diff --git a/apps/dnet-directindex-api/src/test/java/eu/dnetlib/openaire/directindex/OpenAIRESubmitterUtilsTest.java b/apps/dnet-directindex-api/src/test/java/eu/dnetlib/openaire/directindex/OpenAIRESubmitterUtilsTest.java index 233b23ef..926e05b9 100644 --- a/apps/dnet-directindex-api/src/test/java/eu/dnetlib/openaire/directindex/OpenAIRESubmitterUtilsTest.java +++ b/apps/dnet-directindex-api/src/test/java/eu/dnetlib/openaire/directindex/OpenAIRESubmitterUtilsTest.java @@ -1,12 +1,14 @@ package eu.dnetlib.openaire.directindex; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertTrue; + import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Map.Entry; -import org.junit.Assert; -import org.junit.Test; +import org.junit.jupiter.api.Test; import eu.dnetlib.openaire.directindex.mapping.OpenAIRESubmitterUtils; @@ -77,9 +79,9 @@ public class OpenAIRESubmitterUtilsTest { contexts.add("https://zenodo.org/communities/aoo_beopen"); final List tmp = utils.processContexts(contexts); - Assert.assertEquals(2, tmp.size()); + assertEquals(2, tmp.size()); - Assert.assertTrue(tmp.get(0).getId().equals("dh-ch") || tmp.get(1).getId().equalsIgnoreCase("dh-ch")); - Assert.assertTrue(tmp.get(0).getId().equals("dariah") || tmp.get(1).getId().equalsIgnoreCase("dariah")); + assertTrue(tmp.get(0).getId().equals("dh-ch") || tmp.get(1).getId().equalsIgnoreCase("dh-ch")); + assertTrue(tmp.get(0).getId().equals("dariah") || tmp.get(1).getId().equalsIgnoreCase("dariah")); } }