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