Skip to content

Commit 4f1eb17

Browse files
committed
SUPPORT-36587: update java-sync library to support custom fields in customer address
1 parent 3f5fd72 commit 4f1eb17

2 files changed

Lines changed: 21 additions & 3 deletions

File tree

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ ext {
3434
assertjVersion = '3.27.4'
3535
pmdVersion = '7.16.0'
3636
jacocoVersion = '0.8.13'
37-
commercetoolsSyncJava = '10.1.0'
37+
commercetoolsSyncJava = '10.2.0'
3838
httpClientVersion = '18.3.0'
3939
apacheCliVersion = '1.10.0'
40-
jupiterApiVersion = '5.13.4'
40+
jupiterApiVersion = '5.12.2'
4141
logbackVersion = '1.5.18'
4242
logstashLogbackEncoderVersion= '8.1'
43-
jupiterPlatformVersion = '1.13.4'
43+
jupiterPlatformVersion = '1.12.2'
4444
}
4545

4646
apply from: "$rootDir/gradle-scripts/spotless.gradle"

src/integration-test/java/com/commercetools/project/sync/util/IntegrationTestUtils.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,24 @@ public static void cleanUpProjects(
119119
}
120120

121121
private static void deleteProjectData(@Nonnull final ProjectApiRoot client) {
122+
QueryUtils.queryAll(
123+
client.customers().get(),
124+
customers -> {
125+
CompletableFuture.allOf(
126+
customers.stream()
127+
.map(
128+
customer ->
129+
client
130+
.customers()
131+
.delete(customer)
132+
.execute()
133+
.thenApply(ApiHttpResponse::getBody))
134+
.map(CompletionStage::toCompletableFuture)
135+
.toArray(CompletableFuture[]::new))
136+
.join();
137+
})
138+
.toCompletableFuture()
139+
.join();
122140
QueryUtils.queryAll(
123141
client.categories().get(),
124142
categories -> {

0 commit comments

Comments
 (0)