Skip to content

Commit 7cd40d3

Browse files
committed
remove all trailing spaces in Java files (FINERACT-821)
find . -type f -name "*.java" -exec sed -i 's/ *$//' '{}' ';'
1 parent 8f4e7e7 commit 7cd40d3

862 files changed

Lines changed: 4984 additions & 4984 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/AccountNumberPreferencesTest.java

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public class AccountNumberPreferencesTest {
8686
private Integer groupID;
8787
private Integer centerId;
8888
private String groupAccountNo;
89-
89+
9090
@Before
9191
public void setup() {
9292
Utils.initializeRESTAssured();
@@ -191,17 +191,17 @@ private void createAccountNumberPreference() {
191191
this.savingsAccountNumberPreferenceId = (Integer) this.accountNumberPreferencesHelper.createSavingsAccountNumberPreference(
192192
this.responseSpec, "resourceId");
193193
System.out.println("Successfully created account number preferences for Savings (ID: " + this.savingsAccountNumberPreferenceId);
194-
194+
195195
this.groupsAccountNumberPreferenceId = (Integer) this.accountNumberPreferencesHelper.createGroupsAccountNumberPreference(
196196
this.responseSpec, "resourceId");
197197
System.out.println("Successfully created account number preferences for Groups (ID: " + this.groupsAccountNumberPreferenceId);
198-
198+
199199
this.centerAccountNumberPreferenceId = (Integer) this.accountNumberPreferencesHelper.createCenterAccountNumberPreference(
200200
this.responseSpec, "resourceId");
201201
System.out.println("Successfully created account number preferences for Center (ID: " + this.centerAccountNumberPreferenceId);
202202

203203
this.accountNumberPreferencesHelper.verifyCreationOfAccountNumberPreferences(this.clientAccountNumberPreferenceId,
204-
this.loanAccountNumberPreferenceId, this.savingsAccountNumberPreferenceId, this.groupsAccountNumberPreferenceId,
204+
this.loanAccountNumberPreferenceId, this.savingsAccountNumberPreferenceId, this.groupsAccountNumberPreferenceId,
205205
this.centerAccountNumberPreferenceId, this.responseSpec, this.requestSpec);
206206

207207
this.createAccountNumberPreferenceInvalidData("1000", "1001");
@@ -278,33 +278,33 @@ private void createAndValidateClientEntity(Boolean isAccountPreferenceSetUp) {
278278
this.createAndValidateClientWithoutAccountPreference();
279279
}
280280
}
281-
281+
282282
private void createAndValidateGroup(Boolean isAccountPreferenceSetUp) {
283283
this.responseSpec = new ResponseSpecBuilder().expectStatusCode(200).build();
284284
this.groupID = GroupHelper.createGroup(this.requestSpec, this.responseSpec);
285285
GroupHelper.verifyGroupCreatedOnServer(this.requestSpec, this.responseSpec, groupID);
286286

287287
this.groupID = GroupHelper.activateGroup(this.requestSpec, this.responseSpec, groupID.toString());
288288
GroupHelper.verifyGroupActivatedOnServer(this.requestSpec, this.responseSpec, groupID, true);
289-
289+
290290
final String GROUP_URL = "/fineract-provider/api/v1/groups/" + this.groupID + "?" + Utils.TENANT_IDENTIFIER;
291291
this.groupAccountNo = Utils.performServerGet(requestSpec, responseSpec, GROUP_URL, "accountNo");
292-
292+
293293
if (isAccountPreferenceSetUp) {
294294
String groupsPrefixName = (String) this.accountNumberPreferencesHelper.getAccountNumberPreference(
295295
this.groupsAccountNumberPreferenceId, "prefixType.value");
296-
296+
297297
if (groupsPrefixName.equals(this.officeName)) {
298-
298+
299299
final String groupOfficeName = Utils.performServerGet(requestSpec, responseSpec, GROUP_URL, "officeName");
300-
300+
301301
this.validateAccountNumberLengthAndStartsWithPrefix(this.groupAccountNo, groupOfficeName);
302302
}
303303
} else {
304304
validateAccountNumberLengthAndStartsWithPrefix(this.groupAccountNo, null);
305305
}
306306
}
307-
307+
308308
private void createAndValidateCenter(Boolean isAccountPreferenceSetUp) {
309309
this.responseSpec = new ResponseSpecBuilder().expectStatusCode(200).build();
310310
Integer officeId = new OfficeHelper(requestSpec, responseSpec).createOffice("01 July 2007");
@@ -314,21 +314,21 @@ private void createAndValidateCenter(Boolean isAccountPreferenceSetUp) {
314314
CenterDomain center = CenterHelper.retrieveByID(centerId, requestSpec, responseSpec);
315315
Assert.assertNotNull(center);
316316
Assert.assertTrue(center.getName().equals(name));
317-
317+
318318
if (isAccountPreferenceSetUp) {
319319
String centerPrefixName = (String) this.accountNumberPreferencesHelper.getAccountNumberPreference(
320320
this.centerAccountNumberPreferenceId, "prefixType.value");
321321
final String CENTER_URL = "/fineract-provider/api/v1/centers/" + this.centerId + "?" + Utils.TENANT_IDENTIFIER;
322-
322+
323323
if (centerPrefixName.equals(this.officeName)) {
324-
final String centerOfficeName = Utils.performServerGet(requestSpec, responseSpec, CENTER_URL, "officeName");
324+
final String centerOfficeName = Utils.performServerGet(requestSpec, responseSpec, CENTER_URL, "officeName");
325325
this.validateAccountNumberLengthAndStartsWithPrefix(center.getAccountNo(), centerOfficeName);
326326
}
327-
} else {
327+
} else {
328328
validateAccountNumberLengthAndStartsWithPrefix(center.getAccountNo(), null);
329329
}
330330
}
331-
331+
332332

333333
private void createAndValidateClientWithoutAccountPreference() {
334334
this.clientId = ClientHelper.createClient(this.requestSpec, this.responseSpec);

fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/BatchApiTest.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@
4949
* {@link org.apache.fineract.batch.command.CommandStrategyProvider}. This tests
5050
* the response provided by commandStrategy by injecting it with a
5151
* {@code BatchRequest}.
52-
*
52+
*
5353
* @author RishabhShukla
54-
*
54+
*
5555
* @see org.apache.fineract.integrationtests.common.BatchHelper
5656
* @see org.apache.fineract.batch.domain.BatchRequest
5757
*/
@@ -81,7 +81,7 @@ public void setup() {
8181
* Tests for the unimplemented command Strategies by returning 501 status
8282
* code. For a unknownRequest a statusCode 501 is returned back with
8383
* response.
84-
*
84+
*
8585
* @see org.apache.fineract.batch.command.internal.UnknownCommandStrategy
8686
*/
8787
@Test
@@ -104,7 +104,7 @@ public void shouldReturnStatusNotImplementedUnknownCommand() {
104104
* Tests for the successful response for a createClient request from
105105
* createClientCommand. A successful response with statusCode '200' is
106106
* returned back.
107-
*
107+
*
108108
* @see org.apache.fineract.batch.command.internal.CreateClientCommandStrategy
109109
*/
110110
@Test
@@ -125,7 +125,7 @@ public void shouldReturnOkStatusForCreateClientCommand() {
125125
* fails. If Query Parameter 'enclosingTransaction' is set to 'true' and if
126126
* one of the request in BatchRequest fails then all transactions are rolled
127127
* back.
128-
*
128+
*
129129
* @see org.apache.fineract.batch.command.internal.CreateClientCommandStrategy
130130
* @see org.apache.fineract.batch.api.BatchApiResource
131131
* @see org.apache.fineract.batch.service.BatchApiService
@@ -167,7 +167,7 @@ public void shouldRollBackAllTransactionsOnFailure() {
167167
* Tests that a client information was successfully updated through
168168
* updateClientCommand. A 'changes' parameter is returned in the response
169169
* after successful update of client information.
170-
*
170+
*
171171
* @see org.apache.fineract.batch.command.internal.UpdateClientCommandStrategy
172172
*/
173173
@Test
@@ -202,7 +202,7 @@ public void shouldReflectChangesOnClientUpdate() {
202202
* 200(OK) status. It creates a new client and apply a loan to that client.
203203
* This also verifies the successful resolution of dependencies among two
204204
* requests.
205-
*
205+
*
206206
* @see org.apache.fineract.batch.command.internal.ApplyLoanCommandStrategy
207207
*/
208208
@Test
@@ -251,7 +251,7 @@ public void shouldReturnOkStatusForApplyLoanCommand() {
251251
* Tests that a new savings accounts was applied to an existing client and a
252252
* 200(OK) status was returned. It first creates a new client and a savings
253253
* product, then uses the cliendId and ProductId to apply a savings account.
254-
*
254+
*
255255
* @see org.apache.fineract.batch.command.internal.ApplySavingsCommandStrategy
256256
*/
257257
@Test
@@ -294,7 +294,7 @@ public void shouldReturnOkStatusForApplySavingsCommand() {
294294
* Collected properly 200(OK) status was returned for successful responses.
295295
* It first creates a new client and apply a loan, then creates a new charge
296296
* for the create loan and then fetches all the applied charges
297-
*
297+
*
298298
* @see org.apache.fineract.batch.command.internal.CollectChargesCommandStrategy
299299
* @see org.apache.fineract.batch.command.internal.CreateChargeCommandStrategy
300300
*/
@@ -409,7 +409,7 @@ public void shouldReturnOkStatusForBatchRepayment() {
409409
* Test for the successful activation of a pending client using
410410
* 'ActivateClientCommandStrategy'. A '200' status code is expected on
411411
* successful activation.
412-
*
412+
*
413413
* @see org.apache.fineract.batch.command.internal.ActivateClientCommandStrategy
414414
*/
415415
@Test
@@ -439,7 +439,7 @@ public void shouldReturnOkStatusOnSuccessfulClientActivation() {
439439
* Test for the successful approval and disbursal of a loan using
440440
* 'ApproveLoanCommandStrategy' and 'DisburseLoanCommandStrategy'. A '200'
441441
* status code is expected on successful activation.
442-
*
442+
*
443443
* @see org.apache.fineract.batch.command.internal.ApproveLoanCommandStrategy
444444
* @see org.apache.fineract.batch.command.internal.DisburseLoanCommandStrategy
445445
*/

fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/BatchRequestsIntegrationTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
* Test class for testing the integration of Batch API with custom batch
4444
* requests and various user defined workflow. Like in the case of mifos
4545
* community-app
46-
*
46+
*
4747
* @author Rishabh Shukla
4848
*/
4949
public class BatchRequestsIntegrationTest {
@@ -70,12 +70,12 @@ public void setup() {
7070

7171
@Test
7272
/**
73-
* Tests that a loan is successfully applied to client members of a group.
73+
* Tests that a loan is successfully applied to client members of a group.
7474
* Firstly, it'll create a few new clients and then will add those clients
7575
* to the group. Then a few loans will be created and one of those loans
7676
* will be chosen at random and similarily a few of the created clients will
7777
* be chosen on random. Now, the selected loan will be applied to these
78-
* clients through Batch - API ApplyLoanCommandStrategy.
78+
* clients through Batch - API ApplyLoanCommandStrategy.
7979
*/
8080
public void shouldReturnOkStatusForLoansAppliedToSelectedClients() {
8181

fineract-provider/src/integrationTest/java/org/apache/fineract/integrationtests/CenterIntegrationTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ public void testUnassignStaffToCenter() {
239239

240240
final Integer groupID = CenterHelper.createCenter(this.requestSpec, this.responseSpec);
241241
CenterHelper.verifyCenterCreatedOnServer(this.requestSpec, this.responseSpec, groupID);
242-
242+
243243
final HashMap assignStaffToCenterResponseMap = (HashMap) CenterHelper.assignStaff(this.requestSpec,
244244
this.responseSpec, groupID.toString(),
245245
staffId.longValue());
@@ -248,7 +248,7 @@ public void testUnassignStaffToCenter() {
248248
Assert.assertNotNull(centerWithStaffAssigned);
249249
Assert.assertTrue(centerWithStaffAssigned.getId().intValue() == groupID);
250250
Assert.assertTrue(centerWithStaffAssigned.getStaffId().intValue() == staffId);
251-
251+
252252
final HashMap unassignStaffToCenterResponseMap = (HashMap) CenterHelper.unassignStaff(this.requestSpec,
253253
this.responseSpec, groupID.toString(),
254254
staffId.longValue());
@@ -257,7 +257,7 @@ public void testUnassignStaffToCenter() {
257257
Assert.assertNotNull(centerWithStaffUnssigned);
258258
Assert.assertTrue(centerWithStaffUnssigned.getId().intValue() == groupID);
259259
Assert.assertTrue(centerWithStaffUnssigned.getStaffId() == null);
260-
260+
261261
}
262262

263263
}

0 commit comments

Comments
 (0)