Skip to content

Commit 9411ad7

Browse files
fix: format
1 parent a0ac9bd commit 9411ad7

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

src/integration-test/java/com/commercetools/sync/integration/commons/utils/CategoryITUtilsIT.java

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,8 @@
66
import com.commercetools.api.models.category.CategoryDraft;
77
import com.commercetools.api.models.category.CategoryDraftBuilder;
88
import com.commercetools.api.models.common.LocalizedString;
9-
import io.vrap.rmf.base.client.ApiHttpResponse;
109
import java.util.List;
1110
import java.util.Locale;
12-
import java.util.concurrent.CompletableFuture;
13-
import java.util.stream.Collectors;
1411
import org.junit.jupiter.api.AfterAll;
1512
import org.junit.jupiter.api.BeforeAll;
1613
import org.junit.jupiter.api.BeforeEach;
@@ -22,9 +19,7 @@
2219
*/
2320
class CategoryITUtilsIT {
2421

25-
/**
26-
* Delete all categories and types from target project before running tests.
27-
*/
22+
/** Delete all categories and types from target project before running tests. */
2823
@BeforeAll
2924
static void setup() {
3025
CategoryITUtils.deleteAllCategories(TestClientUtils.CTP_TARGET_CLIENT);
@@ -82,9 +77,7 @@ void deleteCategoriesBySlug_WithExistingCategories_ShouldDeleteOnlyMatchingSlugs
8277

8378
// test - delete categories with slugs test-slug-1 and test-slug-2
8479
CategoryITUtils.deleteCategoriesBySlug(
85-
TestClientUtils.CTP_TARGET_CLIENT,
86-
Locale.ENGLISH,
87-
List.of("test-slug-1", "test-slug-2"));
80+
TestClientUtils.CTP_TARGET_CLIENT, Locale.ENGLISH, List.of("test-slug-1", "test-slug-2"));
8881

8982
// assertion - verify only 2 categories remain (test-slug-3 and other-slug)
9083
final List<Category> remainingCategories =
@@ -150,8 +143,7 @@ void deleteCategoriesBySlug_WithCategoriesWithoutKeys_ShouldDeleteSuccessfully()
150143
.getResults();
151144

152145
assertThat(remainingCategories).hasSize(1);
153-
assertThat(remainingCategories.get(0).getSlug().get(Locale.ENGLISH))
154-
.isEqualTo("with-key-slug");
146+
assertThat(remainingCategories.get(0).getSlug().get(Locale.ENGLISH)).isEqualTo("with-key-slug");
155147
assertThat(remainingCategories.get(0).getKey()).isEqualTo("with-key");
156148
}
157149

@@ -185,8 +177,7 @@ void deleteCategoriesBySlug_WithNonExistingSlugs_ShouldNotThrowException() {
185177
.getResults();
186178

187179
assertThat(remainingCategories).hasSize(1);
188-
assertThat(remainingCategories.get(0).getSlug().get(Locale.ENGLISH))
189-
.isEqualTo("existing-slug");
180+
assertThat(remainingCategories.get(0).getSlug().get(Locale.ENGLISH)).isEqualTo("existing-slug");
190181
}
191182

192183
@Test
@@ -311,4 +302,3 @@ void deleteCategoriesBySlug_WithDuplicateSlugsInList_ShouldHandleGracefully() {
311302
assertThat(remainingCategories).isEmpty();
312303
}
313304
}
314-

0 commit comments

Comments
 (0)