Skip to content

Commit

Permalink
remaining misc errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kjozsa committed Nov 14, 2024
1 parent bb9609b commit 1c3ec54
Show file tree
Hide file tree
Showing 5 changed files with 98 additions and 18 deletions.
19 changes: 17 additions & 2 deletions custom/acme/loan/job/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,22 @@ group = 'com.acme.fineract'
archivesBaseName = 'acme-fineract-loan-job'

apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.freefair.lombok'
apply plugin: 'io.spring.dependency-management'

dependencies {
annotationProcessor(
'org.projectlombok:lombok',
'org.mapstruct:mapstruct-processor',
'org.springframework.boot:spring-boot-configuration-processor'
)

implementation(
project(':fineract-core'),
project(':fineract-loan'),
project(':custom:acme:loan:starter')
project(':custom:acme:loan:starter'),
'org.springframework.boot:spring-boot-starter',
'org.mapstruct:mapstruct'
)

testImplementation(
Expand All @@ -40,4 +48,11 @@ dependencies {
)
}

test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}

apply from: 'dependencies.gradle'
18 changes: 17 additions & 1 deletion custom/acme/loan/starter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,18 @@ apply plugin: 'io.freefair.lombok'
apply plugin: 'io.spring.dependency-management'

dependencies {
annotationProcessor(
'org.projectlombok:lombok',
'org.mapstruct:mapstruct-processor',
'org.springframework.boot:spring-boot-configuration-processor'
)

implementation(
project(':fineract-core'),
project(':fineract-loan')
project(':fineract-loan'),
project(':custom:acme:loan:processor'),
'org.springframework.boot:spring-boot-starter',
'org.mapstruct:mapstruct'
)

testImplementation(
Expand All @@ -39,4 +48,11 @@ dependencies {
)
}

test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}

apply from: 'dependencies.gradle'
48 changes: 39 additions & 9 deletions fineract-e2e-tests-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,44 @@ plugins {
id 'java'
}

description = 'Fineract E2E Tests Core'

apply plugin: 'io.freefair.lombok'
apply plugin: 'io.spring.dependency-management'

repositories {
mavenCentral()
}

dependencies {
annotationProcessor(
'org.projectlombok:lombok',
'org.mapstruct:mapstruct-processor'
)

testAnnotationProcessor(
'org.projectlombok:lombok',
'org.mapstruct:mapstruct-processor'
)

implementation(
project(':fineract-client'),
'io.cucumber:cucumber-java',
'io.cucumber:cucumber-junit',
'io.cucumber:cucumber-spring',
'org.springframework.boot:spring-boot-starter-test',
'org.apache.commons:commons-lang3',
'com.google.code.gson:gson',
'org.awaitility:awaitility'
)

testImplementation(
'org.junit.jupiter:junit-jupiter',
'org.mockito:mockito-core',
'org.mockito:mockito-junit-jupiter'
)

testImplementation(project(':fineract-avro-schemas'))
testImplementation(project(':fineract-client'))

testImplementation 'org.springframework:spring-context'
implementation 'org.springframework:spring-test'
Expand All @@ -37,19 +68,11 @@ dependencies {

testImplementation 'com.squareup.retrofit2:retrofit:2.11.0'
testImplementation 'commons-httpclient:commons-httpclient:3.1'
testImplementation 'org.apache.commons:commons-lang3:3.17.0'
testImplementation 'com.googlecode.json-simple:json-simple:1.1.1'
testImplementation 'com.google.code.gson:gson:2.11.0'

testImplementation 'io.cucumber:cucumber-java:7.20.1'
testImplementation 'io.cucumber:cucumber-junit:7.20.1'
testImplementation 'io.cucumber:cucumber-spring:7.20.1'

testImplementation 'io.qameta.allure:allure-cucumber7-jvm:2.29.0'

testImplementation 'org.assertj:assertj-core:3.26.3'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.11.3'
testImplementation 'org.junit.jupiter:junit-jupiter:5.11.3'

testImplementation "ch.qos.logback:logback-core:1.5.12"
testImplementation "ch.qos.logback:logback-classic:1.5.12"
Expand All @@ -62,6 +85,13 @@ dependencies {
testImplementation 'org.apache.commons:commons-collections4:4.4'
}

test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}

tasks.withType(JavaCompile).configureEach {
options.compilerArgs.add("-parameters")
}
Original file line number Diff line number Diff line change
Expand Up @@ -579,9 +579,6 @@ public void givenLoanAccountEnableInstallmentLevelDelinquencyWhenLoanIsOutOfDeli
range1.setId(1L);
DelinquencyRange range2 = DelinquencyRange.instance("Range30", 3, 30);
range2.setId(2L);
List<DelinquencyRange> listDelinquencyRanges = Arrays.asList(range1, range2);
DelinquencyBucket delinquencyBucket = new DelinquencyBucket("test Bucket");
delinquencyBucket.setRanges(listDelinquencyRanges);

LoanDelinquencyTagHistory prevTagForLoan = new LoanDelinquencyTagHistory();
prevTagForLoan.setDelinquencyRange(range1);
Expand Down
28 changes: 25 additions & 3 deletions integration-tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,29 @@
*/
description = 'Fineract Integration Tests'

apply plugin: 'java'
apply plugin: 'com.bmuschko.cargo'
apply plugin: 'io.freefair.lombok'
apply plugin: 'io.spring.dependency-management'

// Configuration for the Gradle Cargo plugin
// https://github.com/bmuschko/gradle-cargo-plugin
configurations {
tomcat
}

dependencies {
annotationProcessor(
'org.projectlombok:lombok',
'org.mapstruct:mapstruct-processor'
)

testAnnotationProcessor(
'org.projectlombok:lombok',
'org.mapstruct:mapstruct-processor'
)
}

apply from: 'dependencies.gradle'

// Allow external drivers to be used for the tests without packaging it
Expand All @@ -37,8 +52,15 @@ dependencies {
driver 'mysql:mysql-connector-java:8.0.33'
}

test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}

cargo {
containerId "tomcat10x"
containerId = 'tomcat10x'

// looks like Cargo doesn't detect the WAR file automatically in the multi-module setup
deployable {
Expand Down Expand Up @@ -74,14 +96,14 @@ cargo {
}
jvmArgs += ' -Dspring.profiles.active=test -Dfineract.events.external.enabled=true'
property 'cargo.start.jvmargs', jvmArgs
property 'cargo.servlet.port', 8443
property 'cargo.protocol', 'https'
property 'cargo.tomcat.connector.keystoreFile', file("$rootDir/fineract-provider/src/main/resources/keystore.jks")
property 'cargo.tomcat.connector.keystorePass', 'openmf'
property 'cargo.tomcat.connector.keystoreType', 'JKS'
property 'cargo.tomcat.httpSecure', true
property 'cargo.tomcat.connector.sslProtocol', 'TLS'
property 'cargo.tomcat.connector.clientAuth', false
property 'cargo.protocol', 'https'
property 'cargo.servlet.port', 8443
}
}
}
Expand Down

0 comments on commit 1c3ec54

Please sign in to comment.