File tree Expand file tree Collapse file tree
src/integration-test/java/com/commercetools/project/sync/util Expand file tree Collapse file tree Original file line number Diff line number Diff 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
4646apply from : " $rootDir /gradle-scripts/spotless.gradle"
Original file line number Diff line number Diff 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 -> {
You can’t perform that action at this time.
0 commit comments