Skip to content

Commit

Permalink
Add comments before tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gcatanese authored Nov 7, 2024
1 parent 45ea0f7 commit e453f4f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -115,20 +115,22 @@ services.each { Service svc ->
tasks.named(svc.id) { dependsOn deployModels, deployServices, deploySerializers, deploySmallServices }
}

// Tests
// Test small services generation
tasks.named('binlookup') {
doLast {
assert file("${layout.projectDirectory}/repo/src/main/java/com/adyen/model/binlookup/Amount.java").exists()
assert file("${layout.projectDirectory}/repo/src/main/java/com/adyen/service/BinLookupApi.java").exists()
assert !file("${layout.projectDirectory}/repo/src/main/java/com/adyen/service/binlookup/DefaultApi.java").exists()
}
}
// Test services generation
tasks.named('checkout') {
doLast {
assert file("${layout.projectDirectory}/repo/src/main/java/com/adyen/model/checkout/Amount.java").exists()
assert file("${layout.projectDirectory}/repo/src/main/java/com/adyen/service/checkout/PaymentsApi.java").exists()
}
}
// Test webhooks generation
tasks.named('acswebhooks') {
doLast {
assert file("${layout.projectDirectory}/repo/src/main/java/com/adyen/model/acswebhooks/Amount.java").exists()
Expand Down

0 comments on commit e453f4f

Please sign in to comment.