forked from D-Net/dnet-hadoop
This commit is contained in:
parent
e4b21be004
commit
3e5570de7a
|
@ -25,8 +25,9 @@ public class ZenodoUploadTest {
|
||||||
|
|
||||||
private static String workingDir;
|
private static String workingDir;
|
||||||
|
|
||||||
// private static FileSystem fileSystem;
|
private final String URL_STRING = "https://sandbox.zenodo.org/api/deposit/depositions";
|
||||||
//
|
private final String ACCESS_TOKEN = "5ImUj0VC1ICg4ifK5dc3AGzJhcfAB4osxrFlsr8WxHXxjaYgCE0hY8HZcDoe";
|
||||||
|
|
||||||
@BeforeAll
|
@BeforeAll
|
||||||
public static void beforeAll() throws IOException {
|
public static void beforeAll() throws IOException {
|
||||||
workingDir = Files
|
workingDir = Files
|
||||||
|
@ -78,8 +79,8 @@ public class ZenodoUploadTest {
|
||||||
// s.connect();
|
// s.connect();
|
||||||
// s.upload(workingDir +"/ni", "Neuroinformatics", fs);
|
// s.upload(workingDir +"/ni", "Neuroinformatics", fs);
|
||||||
|
|
||||||
APIClient client = new APIClient("https://sandbox.zenodo.org/api/deposit/depositions",
|
APIClient client = new APIClient(URL_STRING,
|
||||||
"5ImUj0VC1ICg4ifK5dc3AGzJhcfAB4osxrFlsr8WxHXxjaYgCE0hY8HZcDoe");
|
ACCESS_TOKEN);
|
||||||
client.connect();
|
client.connect();
|
||||||
|
|
||||||
// the second boolean parameter here sets the recursion to true
|
// the second boolean parameter here sets the recursion to true
|
||||||
|
|
Loading…
Reference in New Issue