This commit is contained in:
Miriam Baglioni 2020-06-23 15:44:54 +02:00
parent e4b21be004
commit 3e5570de7a
1 changed files with 5 additions and 4 deletions

View File

@ -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