Commit Graph
243 Commits
Author SHA1 Message Date
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
CsengeSótiandArnold Gálovics 1b9cb5c6d5 FINERACT-2236: add clientId filter to loans request 2025-04-17 17:41:47 +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
CsengeSótiandArnold Gálovics 12617ea1df FINERACT-2235: add summary data to loans list api 2025-04-17 14:02:22 +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 cb8cbd2043 FINERACT-2232: Generalization of StringEnumOptionData enums 2025-04-15 19:45:25 +02:00
Jose Alberto HernandezandAdam Saghy 2143d35e29 FINERACT-2181: Add customData field to InvestorBusinessEvent 2025-04-15 15:14:45 +02:00
Jose Alberto HernandezandAdam Saghy b4b2ef3701 FINERACT-2081: External service credential values masked 2025-04-14 16:05:21 +02:00
danielales2541andAdam Saghy 055fd58ea1 FINERACT-2202: Bulk import fix 2025-04-10 15:20:51 +02:00
Arnold GalovicsandArnold Gálovics 872f97b6b6 FINERACT-2258: Fix for making the Post Interest for Savings job properly work in a multitenant environment
Fineract Docker build - MariaDB / build (push) Canceled after 0s
Fineract Docker build - PostgreSQL / build (push) Canceled after 0s
Fineract Documentation build / build (push) Canceled after 0s
Fineract ActiveMQ Smoke / build (push) Canceled after 0s
Fineract Build Progressive Loan Embeddable Jar & Test with a Sample Application / build (push) Canceled after 0s
Fineract Build & Test - MariaDB / build (push) Canceled after 0s
Fineract Build & Test - MySQL / build (push) Canceled after 0s
Fineract Build & Test - PostgreSQL / build (push) Canceled after 0s
Fineract Tests / build (push) Canceled after 0s
Fineract Kafka Smoke / build (push) Canceled after 0s
2025-04-10 11:01:48 +02:00
viktorpavlenkoandAdam Saghy 3260f76ca7 FINERACT-2169: Refactor calendar controller and service; 2025-04-10 10:59:59 +02:00
Adam Saghy 64b453e9ab FINERACT-2181: Introduce Loop guard to avoid endless loops 2025-04-10 10:58:44 +02:00
Soma SörösandAdam Saghy 7f9a812048 FINERACT-2220: Make ProgressiveLoanInterestScheduleModel serializable and deserializable 2025-04-09 10:12:51 +02:00
viktorpavlenkoandAdam Saghy 0769b41b26 FINERACT-2169: Refactor standing instruction api controller; 2025-04-08 16:39:15 +02:00
viktorpavlenkoandAdam Saghy 056a20f58e FINERACT-2169: Refactor standing instruction history api controller; 2025-04-08 16:38:11 +02:00
Adam Saghy eb7ec383f8 FINERACT-2190: Improve copyFrom of LoanRepaymentScheduleInstallment 2025-04-04 14:29:10 +02:00
Victor RomeroandAdam Saghy 692a6f0a63 Enable logging
FINERACT-2195 fix
2025-04-03 11:39:51 +02:00
oleksandr.masliukandAdam Saghy a0a6d3aa14 FINERACT-2169: Apply dto in ClientCollateralManagementApiResource 2025-04-02 10:55:53 +02:00
oleksandr.masliukandAdam Saghy 510b4853e7 FINERACT-2169: Apply dto in CollateralManagementApiResource 2025-04-01 10:02:47 +02:00
viktorpavlenkoandAdam Saghy 97515fcba9 FINERACT-2169: Refactor external assets owner api controller; 2025-03-31 11:23:47 +02:00
Oleksii NovikovandAdam Saghy e584e26c39 FINERACT-2191: ThreadLocal context handling during job execution 2025-03-27 11:44:12 +01:00
oleksandr.masliukandAdam Saghy 79c08ed7c9 FINERACT-2169: Apply dto in SearchApiResource 2025-03-26 10:03:19 +01:00
viktorpavlenkoandAdam Saghy c2c157cfd7 FINERACT-2169: Refactor currencies api resource; 2025-03-19 17:40:20 +01:00
adam.magyariandAdam Saghy 2cfc0b2503 FINERACT-2203: LoanTransactionsApi add getLoanTransactions 2025-03-19 17:38:19 +01:00
Oleksii NovikovandAdam Saghy 1d569d9ecf FINERACT-2181: Split Datatable service 2025-03-19 17:25:48 +01:00
Adam Saghy 35339a6a83 FINERACT-2181: CommandProcessingResult serialization optimisation 2025-03-19 12:44:52 +01:00
viktorpavlenkoandAdam Saghy ac8f62db51 FINERACT-2169: Refactor document management api and update swagger doc; 2025-03-19 12:26:37 +01:00
viktorpavlenkoandAdam Saghy a0ffaa1c0b FINERACT-2214: Remove pretty print parameter from api and serialization; 2025-03-19 12:23:29 +01:00
viktorpavlenkoandAdam Saghy 84c101ab14 FINERACT-2169: Apply dto for external event config api; 2025-03-19 12:13:21 +01:00
oleksandr.masliukandAdam Saghy c9c01a50e2 FINERACT-2169: Apply DTO instead String json in FundsApiResource 2025-03-19 11:56:08 +01:00
mariiaKraievskaandAdam Saghy 22282ded00 FINERACT-2181: Rework "createMissingAccrualTransactionDuringChargeOffIfNeeded" to avoid flushing and triggering business event as part of Transaction processor 2025-03-18 12:03:27 +01:00
viktorpavlenkoandAdam Saghy e1aa632ccc FINERACT-2169: Apply dto for payment type api and upgrade swagger doc; 2025-03-14 18:17:41 +00:00
viktorpavlenkoandAdam Saghy 707fe3d0e5 FINERACT-2169: Apply dto in api and clean up unnecessary swagger; 2025-03-14 18:17:13 +00:00
oleksandr.masliukandAdam Saghy b698d7247b FINERACT-2169: Apply DTO instead String json in NotesApiResource 2025-03-14 18:12:37 +00:00
viktorpavlenkoandAdam Saghy 35aa6e1f4f FINERACT-2169: Business date api refactor; 2025-03-14 18:10:48 +00:00
Soma SörösandAdam Saghy 3cf85e2977 FINERACT-2197: Introduce a new type of ACTUAL during calculation of days in year 2025-03-14 13:01:06 +00:00
Arnold GalovicsandArnold Gálovics 3198b1b99e FINERACT-2208: Penalties are not recalculated after backdated transactions 2025-03-12 16:52:30 +01:00
viktorpavlenkoandAdam Saghy cc0c09df60 FINERACT-2169: Batches api refactor; 2025-03-11 18:03:43 +00:00
a7med3del1973andAdam Saghy 8371e162ba FINERACT-2181: Refactor ResultColumnHeaderData using Lombok and modern Java new features 2025-03-10 14:25:02 +00:00
Adam Saghy 03bbad21e8 FINERACT-2181: Remove unnecessary long to int conversion 2025-03-07 21:07:42 +00:00
Arnold GalovicsandArnold Gálovics 33e9f7f3db FINERACT-2141: Delayed settlement implementation for fineract loan investor module 2025-03-07 17:46:24 +01:00
Arnold GalovicsandArnold Gálovics 23887bdf1c FINERACT-2181: Tenant ID is included in the log messages 2025-03-06 22:00:52 +01:00
viktorpavlenkoandAdam Saghy f8e5d6c9fc FINERACT-2169: Provision category definition api refactor; 2025-03-05 22:39:49 +00:00
Hossam HatemandAdam Saghy e0c9da4514 FINERACT-2181: Improve DateFormat class code quality 2025-03-04 20:25:50 +00:00
viktorpavlenkoandAdam Saghy d61bbeb71a FINERACT-2169: Taxes api refactor; 2025-03-04 20:24:39 +00:00
Harsh-Srivastav123andAdam Saghy d826913753 This PR refactors the LoanStatus.fromInt method to replace the traditional switch-case statement with a modern switch expression, improving code readability and efficiency. 2025-03-04 20:23:11 +00:00
Arnold GalovicsandArnold Gálovics c1ec3d7fc7 FINERACT-2194: Batch jobs arre failing in a multitenant environment 2025-02-27 16:25:18 +01:00
Adam Saghy 991a2c1af4 FINERACT-2181: Update Test annotation import
(org.junit.Test -> org.junit.jupiter.api.Test)
2025-02-26 22:17:59 +01:00
Hossam HatemandAdam Saghy 8c5606ea8e FINERACT-2081: fix sonar issues in EntityTables enum 2025-02-26 15:04:28 +01:00