merge master

This commit is contained in:
Michele Artini 2021-09-22 14:42:41 +02:00
parent d7bdd2e30c
commit c7c2de7a16
2 changed files with 8 additions and 6 deletions

View File

@ -6,7 +6,7 @@
<parent>
<groupId>eu.dnetlib.dhp</groupId>
<artifactId>apps</artifactId>
<version>3.1.9-SNAPSHOT</version>
<version>3.2.1-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>

View File

@ -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<OpenAIRESubmitterUtils.ContextInfo> 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"));
}
}