Commit 0407f75ec6eac3fcc3f6bc44e80b817da4bc6c39

Authored by Paulo Graça
1 parent b7ec6e4dce
Exists in tests

PG: change addwork type

ptcrisync-test/src/main/java/pt/ptcris/test/dummy/ORCIDClientDummyImpl.java
... ... @@ -93,7 +93,7 @@ public class ORCIDClientDummyImpl implements ORCIDClient {
93 93 return null;
94 94 }
95 95  
96   - public String addWork(Work work) throws OrcidClientException {
  96 + public BigInteger addWork(Work work) throws OrcidClientException {
97 97 Random random = new Random();
98 98 BigInteger key = BigInteger.valueOf(random.nextLong());
99 99 work.setPutCode(key);
... ... @@ -104,7 +104,7 @@ public class ORCIDClientDummyImpl implements ORCIDClient {
104 104 work.setSource(sourceType);
105 105 dummyWorks.put(key, work);
106 106  
107   - return key.toString();
  107 + return key;
108 108 }
109 109  
110 110 public void deleteWork(BigInteger putCode) throws OrcidClientException {
... ...