Commit Graph
480 Commits
Author SHA1 Message Date
Abhinav CillankiandAdam Saghy 159eff0ad4 FINERACT-2309: Emit external events on document upload and delete 2025-06-18 12:20:36 +02:00
mariiaKraievskaandAdam Saghy 496e37e3d4 FINERACT-2181: Accruals on accounts where charge adjustments and refunds are done on the same day causing duplicate journal entries 2025-06-18 12:14:20 +02:00
budaidevandAdam Saghy 2c77f6a277 FINERACT-2304: Avoid retrying after the command succeed 2025-06-14 14:08:35 +02:00
adam.magyariandAdam Saghy 6cd634cb2f FINERACT-2232: Capitalized income - Business events 2025-06-13 18:01:14 +02:00
adam.magyariandAdam Saghy 76b9cde83c FINERACT-2232: Capitalized income - Amortization rework 2025-06-12 23:42:12 +02:00
Soma SörösandArnold Gálovics e811491da7 FINERACT-2304: Handle Stuck CommandProcessing Retries 2025-06-12 10:12:24 +02:00
Adam Saghy 7c656ecae8 FINERACT-2181: Using JUnit 5 for E2E 2025-06-11 20:44:21 +02:00
Adam Saghy 19b2a77127 FINERACT-2181: Fix integration test / unify getLoanRepaymentScheduleDetail() 2025-06-06 15:08:40 +02:00
Soma SörösandAdam Saghy caf42f733c FINERACT-2304: Create Configuration assembler and move resilience4j props into fineract namespace implement proper retry for SynchronousCommandProcessingService and BatchApiServiceImpl 2025-06-06 14:03:11 +02:00
Jose Alberto HernandezandAdam Saghy 39a8d5c63e FINERACT-2181: Installment amount in multiples of should be inherited from loan product to loan level 2025-06-06 10:54:29 +02:00
adam.magyariandAdam Saghy 1556b8608f FINERACT-2232: Capitalized income - transaction reversal 2025-06-03 10:46:56 +02:00
Adam Saghy 5e884d5f45 FINERACT-2279: Contract Termination - Schedule Handing & Reverse-replay 2025-05-31 00:22:00 +02:00
adam.magyariandAdam Saghy 82eafad8dd FINERACT-2232: Capitalized income adjustment 2025-05-29 16:19:29 +02:00
mark.vituskaandAdam Saghy 96d6099cc1 FINERACT-2304 - fix entity manager usage only through persistence context annotation 2025-05-29 13:52:49 +02:00
a7med3del1973andAdam Saghy d71c0bd204 FINERACT-2267: Use the proper not-null annotation in Fineract code base 2025-05-27 20:21:19 +02:00
mariiaKraievskaandAdam Saghy 8b86229a3e FINERACT-2277: Deprecate findExistingReversedTransactionIds and fetch only the ids from database instead 2025-05-26 14:41:32 +02:00
mariiaKraievskaandAdam Saghy 13e4c8b55d FINERACT-2276: Deprecate findExistingTransactionIds and fetch only the ids from database instead 2025-05-26 11:40:10 +02:00
mariiaKraievskaandAdam Saghy 88105c3cac FINERACT-2273: Make sure the setters of Loan repayment installment entity balances maintain the scaling of 6 and set null in case the value is zero 2025-05-26 11:27:26 +02:00
Oleksii NovikovandAdam Saghy 47d5330802 FINERACT-2080: Extract calculations from loan entity 2025-05-22 13:58:44 +02:00
Adam Saghy f8d9958ea7 FINERACT-2181: Fix audit filtering 2025-05-21 21:12:02 +02:00
Adam Saghy 5f59091b70 FINERACT-2283: Self-service APIs are disabled by default 2025-05-16 23:18:02 +02:00
mariiaKraievskaandAdam Saghy e69378637d FINERACT-2232: Capitalized income - amortization in case of Preclose event 2025-05-13 15:09:37 +02:00
Adam Saghy 8488918b3b FINERACT-2181: Update dependencies 2025-05-12 10:37:28 +02:00
budaidevandAdam Saghy 788cd7aff7 FINERACT-2080: Extract complex loan actions out from Loan entity 2025-05-12 10:24:26 +02:00
Adam Saghy 752dd4a10e FINERACT-2232: Capitalized income - Add Capitalized income to Loan 2025-04-30 10:23:55 +02:00
adam.magyariandAdam Saghy 964017e666 FINERACT-2232: Capitalized income - amortization calc util 2025-04-28 14:53:40 +02:00
adam.magyariandAdam Saghy d88f634197 FINERACT-2232: Capitalized income - income type config 2025-04-25 12:35:23 +02:00
mark.vituskaandAdam Saghy 99f12d6091 FINERACT-2140: added hsts protocol support through system property 2025-04-23 12:22:45 +02:00
Oleksii NovikovandAdam Saghy 3687391148 FINERACT-2221: Add immediate charge accrual post maturity for progressive loans 2025-04-23 10:58:23 +02:00
Oleksii NovikovandAdam Saghy 64dddfca48 FINERACT-2080: Extract loanLifecycleStateMachine from Loan entity, refactor transition functionality 2025-04-23 10:12:53 +02:00
Marta JankovicsandAdam Saghy 79c006774e FINERACT-2185: User management improvement 2025-04-23 09:56:05 +02:00
Aleksandar VidakovicandAleksandar Vidakovic 8d83b5547c FINERACT-2169: New command processing infrastructure 2025-04-22 21:50:28 +02:00
Victor RomeroandAdam Saghy 9f4f1d4f17 FINERACT-2094: Update to Java 21
modernize locale instantiations (fixes an error found by the modernizer plugin) - use Locale.of() instead of new Locale()

use recommended gradle toolchain syntax to specify Java class file format version see https://docs.gradle.org/current/userguide/java_plugin.html#toolchain_and_compatibility

mark html5 for later fix (it's the default)

use dummy byte arrays to work around mockito exception

```
org.mockito.exceptions.base.MockitoException:
Mockito cannot mock this class: class java.nio.ByteBuffer.

If you're not sure why you're getting this error, please open an issue on GitHub.

Java               : 21
JVM vendor name    : Ubuntu
JVM vendor version : 21.0.6+7-Ubuntu-122.04.1
JVM name           : OpenJDK 64-Bit Server VM
JVM version        : 21.0.6+7-Ubuntu-122.04.1
JVM info           : mixed mode, sharing
OS name            : Linux
OS version         : 5.15.0-136-generic

You are seeing this disclaimer because Mockito is configured to create inlined mocks.
You can learn about inline mocks and their limitations under item #39 of the Mockito class javadoc.

Underlying exception : org.mockito.exceptions.base.MockitoException: Unsupported settings with this type 'java.nio.ByteBuffer'
	at app//org.apache.fineract.infrastructure.event.external.jobs.SendAsynchronousEventsTaskletTest.givenBatchSize2WhenEventSendFailsThenExecutionStops(SendAsynchronousEventsTaskletTest.java:170)
	at java.base@21.0.6/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base@21.0.6/java.util.ArrayList.forEach(ArrayList.java:1596)
	at java.base@21.0.6/java.util.ArrayList.forEach(ArrayList.java:1596)
Caused by: org.mockito.exceptions.base.MockitoException: Unsupported settings with this type 'java.nio.ByteBuffer'
	at app//net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:168)
	at app//net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:399)
	at app//net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:190)
	at app//net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:410)
	... 4 more
```

see also: https://stackoverflow.com/questions/47046996/java-lang-unsupportedoperationexception-when-mocking-java-nio-bytebuffer-class

wrap byte arrays with ByteBuffer

fix:

```
/home/adamm/git/apache/fineract/fineract-provider/src/test/java/org/apache/fineract/infrastructure/event/external/jobs/SendAsynchronousEventsTaskletTest.java:148: error: incompatible types: byte[] cannot be converted to ByteBuffer
                "anidempotencyKey", "aSchema", "dummy".getBytes());
                                                               ^
/home/adamm/git/apache/fineract/fineract-provider/src/test/java/org/apache/fineract/infrastructure/event/external/jobs/SendAsynchronousEventsTaskletTest.java:170: error: incompatible types: byte[] cannot be converted to ByteBuffer
                "anidempotencyKey", "aSchema", "dummy".getBytes());
                                                               ^
/home/adamm/git/apache/fineract/fineract-provider/src/test/java/org/apache/fineract/infrastructure/event/external/jobs/SendAsynchronousEventsTaskletTest.java:189: error: incompatible types: byte[] cannot be converted to ByteBuffer
                "anidempotencyKey", "aSchema", "dummy".getBytes());
                                                               ^
/home/adamm/git/apache/fineract/fineract-provider/src/test/java/org/apache/fineract/infrastructure/event/external/jobs/SendAsynchronousEventsTaskletTest.java:210: error: incompatible types: byte[] cannot be converted to ByteBuffer
                "anidempotencyKey", "aSchema", "dummy".getBytes());
```

...and use StandardCharsets with getBytes
2025-04-17 15:01:00 +02:00
Adam Saghy 1f76a8aeb2 FINERACT-2262: Improve cache handling and add customization option 2025-04-15 19:45:42 +02:00
adam.magyariandAdam Saghy 7df7be2b16 FINERACT-2232: Progressive loan income capitalization config 2025-04-15 19:45:25 +02:00
Jose Alberto HernandezandAdam Saghy 6a65bc6592 FINERACT-2181: Add customData field to LoanAccountDelinquencyRangeBusinessEvent 2025-04-15 15:16:03 +02:00
Jose Alberto HernandezandAdam Saghy 2eca91eb98 FINERACT-2181: Add customData field to LoanRepaymentBusinessEvent 2025-04-15 15:15:45 +02:00
Jose Alberto HernandezandAdam Saghy 8ce76e1ad6 FINERACT-2181: Add customData field to LoanAdjustTransactionBusinessEvent 2025-04-15 15:15:21 +02:00
Jose Alberto HernandezandAdam Saghy 4ebf768286 FINERACT-2181: Add customData field to LoanProductBusinessEvent 2025-04-14 23:08:13 +02:00
Adam SaghyandArnold Gálovics 815421fd94 FINERACT-2181: No Accrual Activity for not active loans 2025-04-12 09:14:52 +02:00
Oleksii NovikovandAdam Saghy 2ba7e28108 FINERACT-2080: Extract DTO mappers from loan entity 2025-04-07 13:13:35 +02:00
Adam Saghy 4213f56a98 FINERACT-2181: Add customData field to LoanChargeBusinessEvent 2025-04-04 15:31:13 +02:00
Rustam ZeinalovandAdam Saghy 9bf365b62d FINERACT-2226: added e2e tests for validation of progressive loan charge-off reverse replay events fix 2025-04-04 14:29:30 +02:00
budaidevandAdam Saghy 16e70527ea FINERACT-2080: separate LoanRepaymentScheduleTransactionProcessorFactory from loan 2025-04-03 10:50:50 +02:00
budaidevandAdam Saghy ba3aa80b7c FINERACT-2215: charge-off fix for reversed transactions 2025-04-02 13:24:19 +02:00
mariiaKraievskaandAdam Saghy 957666df18 FINERACT-2210: Incorrect accounting of reversed charge-off transaction. 2025-04-01 10:01:13 +02:00
mariiaKraievskaandAdam Saghy acabf16003 FINERACT-2148: Cumulative Loan - accrual handling in case of charged-off loan 2025-03-27 15:05:14 +01:00
mark.vituskaandAdam Saghy 993393b519 FINERACT-2080: use enums instead of integers in Loan, LoanProduct and LoanTransaction 2025-03-20 14:34:51 +01:00
Hossam HatemandAdam Saghy 1cb5d7c371 FINERACT-2181: Improve AssertJ assertions in DefaultScheduledDateGeneratorTest 2025-03-19 17:39:01 +01:00
Oleksii NovikovandAdam Saghy 1d569d9ecf FINERACT-2181: Split Datatable service 2025-03-19 17:25:48 +01:00