From 24c41806acff2049fc07558e9d1623f50199da1a Mon Sep 17 00:00:00 2001 From: "miriam.baglioni" Date: Tue, 18 Apr 2023 09:08:09 +0200 Subject: [PATCH] [ZenodoApiClienttest] change test to mirror change in the omplementation --- .../eu/dnetlib/dhp/common/api/ZenodoAPIClientTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dhp-common/src/test/java/eu/dnetlib/dhp/common/api/ZenodoAPIClientTest.java b/dhp-common/src/test/java/eu/dnetlib/dhp/common/api/ZenodoAPIClientTest.java index 2ccaed3e4..92c1dcda3 100644 --- a/dhp-common/src/test/java/eu/dnetlib/dhp/common/api/ZenodoAPIClientTest.java +++ b/dhp-common/src/test/java/eu/dnetlib/dhp/common/api/ZenodoAPIClientTest.java @@ -33,7 +33,7 @@ class ZenodoAPIClientTest { InputStream is = new FileInputStream(file); - Assertions.assertEquals(200, client.uploadIS(is, "COVID-19.json.gz", file.length())); + Assertions.assertEquals(200, client.uploadIS(is, "COVID-19.json.gz")); String metadata = IOUtils.toString(getClass().getResourceAsStream("/eu/dnetlib/dhp/common/api/metadata.json")); @@ -56,7 +56,7 @@ class ZenodoAPIClientTest { InputStream is = new FileInputStream(file); - Assertions.assertEquals(200, client.uploadIS(is, "COVID-19.json.gz", file.length())); + Assertions.assertEquals(200, client.uploadIS(is, "COVID-19.json.gz")); String metadata = IOUtils.toString(getClass().getResourceAsStream("/eu/dnetlib/dhp/common/api/metadata.json")); @@ -80,7 +80,7 @@ class ZenodoAPIClientTest { InputStream is = new FileInputStream(file); - Assertions.assertEquals(200, client.uploadIS(is, "newVersion_deposition", file.length())); + Assertions.assertEquals(200, client.uploadIS(is, "newVersion_deposition")); Assertions.assertEquals(202, client.publish()); @@ -100,7 +100,7 @@ class ZenodoAPIClientTest { InputStream is = new FileInputStream(file); - Assertions.assertEquals(200, client.uploadIS(is, "newVersion_deposition", file.length())); + Assertions.assertEquals(200, client.uploadIS(is, "newVersion_deposition")); Assertions.assertEquals(202, client.publish());