forked from antonis.lempesis/dnet-hadoop
This commit is contained in:
parent
f9578312b5
commit
a118b66858
|
@ -25,7 +25,6 @@ import com.fasterxml.jackson.databind.ObjectMapper;
|
|||
import com.google.gson.Gson;
|
||||
|
||||
import eu.dnetlib.dhp.schema.dump.oaf.Result;
|
||||
import eu.dnetlib.dhp.schema.dump.oaf.Software;
|
||||
|
||||
public class SplitForCommunityTest {
|
||||
|
||||
|
|
|
@ -24,7 +24,6 @@ import org.slf4j.LoggerFactory;
|
|||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
|
||||
import eu.dnetlib.dhp.schema.dump.oaf.Result;
|
||||
import eu.dnetlib.dhp.schema.dump.oaf.Software;
|
||||
|
||||
public class UpdateProjectInfoTest {
|
||||
|
||||
|
|
|
@ -12,14 +12,14 @@ public class ZenodoUploadTest {
|
|||
@Test
|
||||
public void testConnection() throws IOException {
|
||||
APIClient s = new APIClient(
|
||||
// "https://sandbox.zenodo.org/api/deposit/depositions?access_token=5ImUj0VC1ICg4ifK5dc3AGzJhcfAB4osxrFlsr8WxHXxjaYgCE0hY8HZcDoe");
|
||||
"https://sandbox.zenodo.org/api/deposit/depositions");
|
||||
// "https://sandbox.zenodo.org/api/deposit/depositions?access_token=5ImUj0VC1ICg4ifK5dc3AGzJhcfAB4osxrFlsr8WxHXxjaYgCE0hY8HZcDoe");
|
||||
"https://sandbox.zenodo.org/api/deposit/depositions");
|
||||
|
||||
Assertions.assertEquals(201, s.connect());
|
||||
|
||||
final String sourcePath = getClass()
|
||||
.getResource("/eu/dnetlib/dhp/oa/graph/dump/zenodo/ni")
|
||||
.getPath();
|
||||
.getResource("/eu/dnetlib/dhp/oa/graph/dump/zenodo/ni")
|
||||
.getPath();
|
||||
|
||||
s.upload(sourcePath, "Neuroinformatics");
|
||||
|
||||
|
@ -35,13 +35,13 @@ public class ZenodoUploadTest {
|
|||
@Test
|
||||
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()
|
||||
.getResource("/eu/dnetlib/dhp/oa/graph/dump/zenodo/ni")
|
||||
.getPath();
|
||||
.getResource("/eu/dnetlib/dhp/oa/graph/dump/zenodo/ni")
|
||||
.getPath();
|
||||
|
||||
s.upload(sourcePath, "Neuroinformatics");
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue