Commit 74f823614d5561d1e61bf3d2149dde284acf4b91

Authored by Paulo Graça
1 parent 0407f75ec6
Exists in tests

PG: refactor getSummaryPutCodes method name

ptcrisync-test/src/main/java/pt/ptcris/test/ExportTest.java
... ... @@ -50,7 +50,7 @@ public class ExportTest {
50 50 ORCIDClientImpl orcidClient = (ORCIDClientImpl) DefaultTestOrcidClient.getDefaultClient();
51 51  
52 52 ActivitiesSummary activitiesSummary = ActivitiesSummaryTestPrepare.loadFromResources();
53   - List<BigInteger> putCodesList = ORCIDHelper.getWorkSummaryPutCodes(activitiesSummary);
  53 + List<BigInteger> putCodesList = ORCIDHelper.getSummaryPutCodes(activitiesSummary);
54 54  
55 55 if (!ignoreLimits) {
56 56 int nRecords = Integer.parseInt(properties.getProperty("test_export_limit"));
... ... @@ -115,7 +115,7 @@ public class ExportTest {
115 115 ORCIDClientImpl orcidClient = (ORCIDClientImpl) DefaultTestOrcidClient.getDefaultClient();
116 116  
117 117 ActivitiesSummary activitiesSummary = ActivitiesSummaryTestPrepare.loadFromResources();
118   - List<BigInteger> putCodesList = ORCIDHelper.getWorkSummaryPutCodes(activitiesSummary);
  118 + List<BigInteger> putCodesList = ORCIDHelper.getSummaryPutCodes(activitiesSummary);
119 119  
120 120 if (!ignoreLimits) {
121 121 int nRecords = (Integer.parseInt(properties.getProperty("test_export_limit")) + 1);
... ...
ptcrisync-test/src/main/java/pt/ptcris/test/ImportTest.java
... ... @@ -100,7 +100,7 @@ public class ImportTest {
100 100 try {
101 101 //Load from local file activities
102 102 activitiesSummary = ActivitiesSummaryTestPrepare.loadFromResources();
103   - List<BigInteger> putCodesList = ORCIDHelper.getWorkSummaryPutCodes(activitiesSummary);
  103 + List<BigInteger> putCodesList = ORCIDHelper.getSummaryPutCodes(activitiesSummary);
104 104  
105 105  
106 106 if (!ignoreLimits) {
... ...
ptcrisync-test/src/main/java/pt/ptcris/test/PerformanceTest.java
... ... @@ -69,7 +69,7 @@ public class PerformanceTest {
69 69 // Test cycle - perform several configured tests
70 70 ActivitiesSummary activitiesSummary = ActivitiesSummaryTestPrepare.loadFromResources();
71 71 for (int i = 0; i < nTestRecords.length; i++) {
72   - List<BigInteger> putCodesList = ORCIDHelper.getWorkSummaryPutCodes(activitiesSummary);
  72 + List<BigInteger> putCodesList = ORCIDHelper.getSummaryPutCodes(activitiesSummary);
73 73  
74 74 int nRecords = Integer.parseInt(nTestRecords[i].trim());
75 75 int nPutCodes = nRecords;
... ... @@ -161,7 +161,7 @@ public class PerformanceTest {
161 161  
162 162 try {
163 163 ActivitiesSummary activitiesSummary = ActivitiesSummaryTestPrepare.loadFromResources();
164   - List<BigInteger> putCodesList = ORCIDHelper.getWorkSummaryPutCodes(activitiesSummary);
  164 + List<BigInteger> putCodesList = ORCIDHelper.getSummaryPutCodes(activitiesSummary);
165 165  
166 166 ORCIDHelper helper = new ORCIDHelper(orcidClient);
167 167  
... ...
ptcrisync-test/src/main/java/pt/ptcris/test/preparation/WorkTestPrepare.java
... ... @@ -123,7 +123,7 @@ public class WorkTestPrepare {
123 123 String activitiesSummaryPath = resources_path + "/" + sourceOrcidId + "_activities.xml";
124 124 ActivitiesSummaryTestPrepare.activitiesSummaryToXMLFile(sourceActivitiesSummary,activitiesSummaryPath);
125 125  
126   - List<BigInteger> sourcePutcodesList = ORCIDHelper.getWorkSummaryPutCodes(sourceActivitiesSummary);
  126 + List<BigInteger> sourcePutcodesList = ORCIDHelper.getSummaryPutCodes(sourceActivitiesSummary);
127 127  
128 128 Work work;
129 129 String workPath;
... ...