remove all trailing spaces in Java files (FINERACT-821)
find . -type f -name "*.java" -exec sed -i 's/ *$//' '{}' ';'
This commit is contained in:
committed by
Michael Vorburger ⛑️
parent
b0196049f1
commit
dd7503f296
@@ -33,7 +33,7 @@ import org.mockito.Mockito;
|
||||
/**
|
||||
* Runs a unit test for BatchApiResource by mocking the BatchRequest and
|
||||
* BatchApiService objects.
|
||||
*
|
||||
*
|
||||
* @author Rishabh Shukla
|
||||
*/
|
||||
public class BatchBuilder {
|
||||
|
||||
+1
-1
@@ -49,7 +49,7 @@ public class SpringConfigurationTest {
|
||||
* to, as the SpringJUnit4ClassRunner with this @ContextConfiguration will
|
||||
* automatically fail if e.g. there is any invalid Spring XML, an invalid
|
||||
* bean definition somewhere or anything like that.
|
||||
*
|
||||
*
|
||||
* @see https://www.google.ch/search?q=Aal+izz+well
|
||||
*/
|
||||
@Test
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@ import org.junit.Test;
|
||||
|
||||
/**
|
||||
* This is an integration test for the Spring Boot launch stuff.
|
||||
*
|
||||
*
|
||||
* @see ServerApplication
|
||||
*/
|
||||
public class SpringBootServerLoginTest extends AbstractSpringBootWithMariaDB4jIntegrationTest {
|
||||
|
||||
@@ -45,27 +45,27 @@ public class TopicTest {
|
||||
|
||||
@Mock
|
||||
private OfficeRepository officeRepository;
|
||||
|
||||
|
||||
@Mock
|
||||
private RoleRepository roleRepository;
|
||||
|
||||
|
||||
@Mock
|
||||
private TopicWritePlatformService topicWritePltfService;
|
||||
|
||||
|
||||
@Mock
|
||||
private TopicRepository topicRepository;
|
||||
|
||||
|
||||
@Mock
|
||||
private TopicSubscriberWritePlatformService topicSubscriberWritePltfService;
|
||||
|
||||
|
||||
@Mock
|
||||
private AppUserRepository appUserRepository;
|
||||
|
||||
|
||||
@Test
|
||||
public void testTopicStorage() {
|
||||
Office office = officeRepository.getOne(1L);
|
||||
Role role = new Role("New Member_Type", "Testing topic creation");
|
||||
|
||||
|
||||
String title = role.getName() + " of " + office.getName();
|
||||
Long entityId = office.getId();
|
||||
String entityType = "";
|
||||
@@ -79,32 +79,32 @@ public class TopicTest {
|
||||
when(this.officeRepository.getOne(1L)).thenReturn(office);
|
||||
when(this.roleRepository.save(role)).thenReturn(role);
|
||||
when(this.topicWritePltfService.create(refEq(topic))).thenReturn(1L);
|
||||
|
||||
|
||||
this.roleRepository.save(role);
|
||||
Long topicId = this.topicWritePltfService.create(topic);
|
||||
|
||||
|
||||
verify(this.roleRepository, times(1)).save(role);
|
||||
verify(this.topicWritePltfService, times(1)).create(refEq(topic));
|
||||
assertEquals(topicId, new Long(1));
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testTopicSubscriberStorage() {
|
||||
AppUser user = appUserRepository.findById(1L).get();
|
||||
Topic topic = topicRepository.findById(1L).get();
|
||||
|
||||
|
||||
TopicSubscriber topicSubscriber = new TopicSubscriber(topic, user, new Date());
|
||||
|
||||
|
||||
when(this.appUserRepository.getOne(1L)).thenReturn(user);
|
||||
when(this.topicRepository.getOne(1L)).thenReturn(topic);
|
||||
when(this.topicSubscriberWritePltfService.create(refEq(topicSubscriber))).thenReturn(1L);
|
||||
|
||||
|
||||
Long subscriberId = this.topicSubscriberWritePltfService.create(topicSubscriber);
|
||||
|
||||
|
||||
verify(this.topicSubscriberWritePltfService, times(1)).create(refEq(topicSubscriber));
|
||||
assertEquals(subscriberId, new Long(1));
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -58,7 +58,7 @@ public class HeavensFamilyLoanRepaymentScheduleTransactionProcessorTest {
|
||||
/**
|
||||
* Scenario 1: Single transaction which is less than the interest component
|
||||
* of the first installment.
|
||||
*
|
||||
*
|
||||
* Expectation: - First installment shows interest completed equal to that
|
||||
* of transactions, zero principal completed. (payment order interest,
|
||||
* principal) - transaction has interest portion equal to transaction
|
||||
|
||||
+4
-4
@@ -32,9 +32,9 @@ public class LoanScheduleTestDataHelper {
|
||||
|
||||
/**
|
||||
* Creates brand new three installment loan:
|
||||
*
|
||||
*
|
||||
* For example: with firstDueDate = 02 July 2011
|
||||
*
|
||||
*
|
||||
* Date Principal Interest Interest Waived
|
||||
* ==================================
|
||||
* ================================================ 02 July 2011 1,000 200 0
|
||||
@@ -56,9 +56,9 @@ public class LoanScheduleTestDataHelper {
|
||||
|
||||
/**
|
||||
* Creates three installment loan with first installment fully completed:
|
||||
*
|
||||
*
|
||||
* For example: with firstDueDate = 02 July 2011
|
||||
*
|
||||
*
|
||||
* Date Principal Interest Interest Waived Completed
|
||||
* ========================
|
||||
* ==================================================
|
||||
|
||||
+3
-3
@@ -32,12 +32,12 @@ public class LoanTransactionBuilder {
|
||||
|
||||
/**
|
||||
* public LoanTransaction build() {
|
||||
*
|
||||
*
|
||||
* LoanTransaction transaction = null;
|
||||
*
|
||||
*
|
||||
* if (repayment) { transaction =
|
||||
* LoanTransaction.repayment(transactionAmount, transactionDate); }
|
||||
*
|
||||
*
|
||||
* return transaction; }
|
||||
**/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user