Commit 5555b3b5dcdd3f5c14fa0d69da065380995faa18

Authored by Luís Pedro
1 parent b2af014474

removed OrcidTest class

src/test/java/org/um/dsi/gavea/orcid/client/test/OrcidTest.java
... ... @@ -1,46 +0,0 @@
1   -package org.um.dsi.gavea.orcid.client.test;
2   -
3   -import java.util.ArrayList;
4   -import java.util.List;
5   -
6   -import org.junit.AfterClass;
7   -import org.junit.BeforeClass;
8   -import org.junit.Test;
9   -import org.um.dsi.gavea.orcid.client.OrcidOAuthClient;
10   -import org.um.dsi.gavea.orcid.model.common.ScopePathType;
11   -
12   -public class OrcidTest {
13   -
14   - private static OrcidOAuthClient orcidOAuthClient;
15   -
16   - static final List<ScopePathType> defaultScopes = new ArrayList<ScopePathType>() {
17   - {
18   - add(ScopePathType.ACTIVITIES_UPDATE);
19   - }
20   - };
21   -
22   -
23   - @BeforeClass
24   - public static void setUp() {
25   - orcidOAuthClient = new OrcidOAuthClient("https://sandbox.orcid.org/", "https://api.sandbox.orcid.org/",
26   - "0000-0002-2370-2799", "76a50cc2-c0e5-4759-968d-6511a029e4de",
27   - "https://cosmos.dsi.uminho.pt/view/orcid/oauth.xhtml");
28   - }
29   -
30   - @AfterClass
31   - public static void tearDown() {
32   - orcidOAuthClient = null;
33   - }
34   -
35   - @Test
36   - public void testGetFunding() {
37   - try {
38   - System.out.println(orcidOAuthClient.getAuthorizeUriLogin(defaultScopes, null, null));
39   - System.out.println(orcidOAuthClient.getAuthorizeUriLogin(defaultScopes, null, "0000-0001-8317-2905"));
40   - System.out.println(orcidOAuthClient.getAuthorizeUriLogin(defaultScopes, null, "ajg@gavea.dsi.uminho.pt"));
41   - System.out.println(orcidOAuthClient.getAuthorizeUriRegistration(defaultScopes, null, "Gonçalves", "André"));
42   - } catch (Exception e) {
43   - e.printStackTrace();
44   - }
45   - }
46   -}