Commit Graph
21 Commits
Author SHA1 Message Date
Victor Romero 78bd68a017 FINERACT-2312: fix missing allowFullTermForTranche parameter for the Calculate the Loan Schedule 2025-12-12 20:45:07 -06: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
Victor RomeroandAdam Saghy 692a6f0a63 Enable logging
FINERACT-2195 fix
2025-04-03 11:39:51 +02:00
Victor RomeroandAdam Saghy eacfb92545 FINERACT-2181: Update non-major 2025-03-18 12:04:27 +01:00
Victor Romero e82f342d4b Github Action for DockerHub Publishing 2024-05-28 13:56:09 -06:00
Victor Romero 9cc76fe70a HU4 Return data 2024-05-04 00:20:36 -06:00
Vic RomeroandArnold Gálovics fda35f22dd Add dependency management fix for publishing 2023-03-28 17:33:08 +02:00
Vic RomeroandArnold Gálovics 2f4dcbdd6c FINERACT-1820: Update for Authentication in Legacy Docs 2022-11-27 20:25:05 +01:00
Vic RomeroandAleksandar Vidakovic f2756b25bb FINERACT-1791 2022-10-29 11:53:45 +02:00
Vic RomeroandArnold Gálovics 8a55d5807a FINERACT-1656 Correlation ID propagation and configuration 2022-07-13 21:29:55 +02:00
Vic RomeroandAleksandar Vidakovic 4648a96a35 Configuring SonarQube using only the sonarqube.yml file
Configuring SonarQube using only the sonarqube.yml file

Configuring SonarQube using only the sonarqube.yml file

Configuring SonarQube using only the sonarqube.yml file

Configuring SonarQube using only the sonarqube.yml file

Configuring SonarQube using only the sonarqube.yml file

Configuring SonarQube using only the sonarqube.yml file

Configuring SonarQube using only the sonarqube.yml file

Changes have been done for making the GitHub actions flexible to push changes to the upstream Apache Fineract
2022-04-05 17:15:01 +02:00
Victor RomeroandPetri Tuomola 03a8a9858d FINERACT-982 - Completely ditch use of Drizzle JDBC Driver after all 2021-12-24 12:23:56 +08:00
Vic RomeroandPetri Tuomola b53fae870e Adding UI to K8s deployment (FINERACT-1419) 2021-12-23 22:25:22 +08:00
Victor RomeroandPetri Tuomola 291edd7a3f Disabling SonarQube HotSpot, because Fineract API Rest is creating services that are used by non-browser clients
Disabling SonarQube HotSpot, because Fineract API Rest is creating services that are used by non-browser clients with spotlessApply
2021-12-07 19:14:36 +08:00
Victor RomeroandAleksandar Vidakovic f8a0a8d5cd Upgrade JDK 11 LTS to JDK 17 LTS (FINERACT-1406) 2021-11-26 03:58:06 +01:00
Victor RomeroandAleksandar Vidakovic 97bcd0926c Upgrade JDK 11 LTS to JDK 17 LTS (FINERACT-1406) 2021-11-26 03:58:06 +01:00
Victor RomeroandPetri Tuomola a6eef163a9 Make sure that using this pseudorandom number generator is safe (FINERACT-1415) 2021-10-26 12:28:33 +08:00
Victor RomeroandPetri Tuomola e6b64858e9 Enhace SonarQube analysis (FINERACT-1409) 2021-10-26 12:28:33 +08:00
Victor RomeroandPetri Tuomola 0de257fd44 Use of Azul Zulu JDK 11 LTS (FINERACT-1416) 2021-10-26 11:13:03 +08:00
Victor Romero 5d8cb926e5 Revert "https://issues.apache.org/jira/browse/FINERACT-1415 fix (#1908)"
This reverts commit 5246850b84.
2021-10-20 17:11:52 -05:00
Victor Romero 1f7947e067 FINERACT-1409 Adding Code Coverage support 2021-10-20 14:54:20 -05:00