This commit is contained in:
Miriam Baglioni 2020-06-18 11:34:30 +02:00
parent f9578312b5
commit a118b66858
3 changed files with 8 additions and 10 deletions

View File

@ -25,7 +25,6 @@ import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.gson.Gson; import com.google.gson.Gson;
import eu.dnetlib.dhp.schema.dump.oaf.Result; import eu.dnetlib.dhp.schema.dump.oaf.Result;
import eu.dnetlib.dhp.schema.dump.oaf.Software;
public class SplitForCommunityTest { public class SplitForCommunityTest {

View File

@ -24,7 +24,6 @@ import org.slf4j.LoggerFactory;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
import eu.dnetlib.dhp.schema.dump.oaf.Result; import eu.dnetlib.dhp.schema.dump.oaf.Result;
import eu.dnetlib.dhp.schema.dump.oaf.Software;
public class UpdateProjectInfoTest { public class UpdateProjectInfoTest {

View File

@ -12,14 +12,14 @@ public class ZenodoUploadTest {
@Test @Test
public void testConnection() throws IOException { public void testConnection() throws IOException {
APIClient s = new APIClient( APIClient s = new APIClient(
// "https://sandbox.zenodo.org/api/deposit/depositions?access_token=5ImUj0VC1ICg4ifK5dc3AGzJhcfAB4osxrFlsr8WxHXxjaYgCE0hY8HZcDoe"); // "https://sandbox.zenodo.org/api/deposit/depositions?access_token=5ImUj0VC1ICg4ifK5dc3AGzJhcfAB4osxrFlsr8WxHXxjaYgCE0hY8HZcDoe");
"https://sandbox.zenodo.org/api/deposit/depositions"); "https://sandbox.zenodo.org/api/deposit/depositions");
Assertions.assertEquals(201, s.connect()); Assertions.assertEquals(201, s.connect());
final String sourcePath = getClass() final String sourcePath = getClass()
.getResource("/eu/dnetlib/dhp/oa/graph/dump/zenodo/ni") .getResource("/eu/dnetlib/dhp/oa/graph/dump/zenodo/ni")
.getPath(); .getPath();
s.upload(sourcePath, "Neuroinformatics"); s.upload(sourcePath, "Neuroinformatics");
@ -35,13 +35,13 @@ public class ZenodoUploadTest {
@Test @Test
public void testUpload() throws IOException { public void testUpload() throws IOException {
APIClient s = new APIClient("https://sandbox.zenodo.org/api/deposit/depositions?access_token=5ImUj0VC1ICg4ifK5dc3AGzJhcfAB4osxrFlsr8WxHXxjaYgCE0hY8HZcDoe"); APIClient s = new APIClient(
"https://sandbox.zenodo.org/api/deposit/depositions?access_token=5ImUj0VC1ICg4ifK5dc3AGzJhcfAB4osxrFlsr8WxHXxjaYgCE0hY8HZcDoe");
final String sourcePath = getClass() final String sourcePath = getClass()
.getResource("/eu/dnetlib/dhp/oa/graph/dump/zenodo/ni") .getResource("/eu/dnetlib/dhp/oa/graph/dump/zenodo/ni")
.getPath(); .getPath();
s.upload(sourcePath, "Neuroinformatics"); s.upload(sourcePath, "Neuroinformatics");
} }
} }