Skip to content

Commit 9bbe16b

Browse files
committed
spotless: Fix code style
1 parent b73edf6 commit 9bbe16b

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

commercetools/commercetools-sdk-java-api/src/test/java/com/commercetools/CategoriesTest.java

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,13 @@
77
import java.util.Locale;
88

99
import com.commercetools.api.client.ByProjectKeyCategoriesPost;
10-
1110
import com.commercetools.api.models.category.Category;
1211
import com.commercetools.api.models.category.CategoryTreeFactory;
1312
import com.commercetools.api.models.common.LocalizedString;
1413
import com.commercetools.api.models.common.LocalizedStringEntry;
14+
1515
import io.vrap.rmf.base.client.ApiHttpRequest;
1616
import io.vrap.rmf.base.client.SerializerOnlyApiHttpClient;
17-
import com.commercetools.api.models.common.LocalizedStringImpl;
1817

1918
import org.assertj.core.api.Assertions;
2019
import org.junit.jupiter.api.Test;
@@ -50,9 +49,16 @@ public void testLocalizedStringEntryEqualsOverride() {
5049

5150
@Test
5251
public void testCategoryTree() {
53-
List<Category> allCategoriesAsFlatList = List.of(Category.builder().name(LocalizedString.of(Locale.ENGLISH, "Women"))
54-
.slug(LocalizedString.of(Locale.ENGLISH, "women")).id("1").version(1L).createdAt(ZonedDateTime.now()).lastModifiedAt(ZonedDateTime.now()).ancestors()
55-
.orderHint("c2").build());
52+
List<Category> allCategoriesAsFlatList = List.of(Category.builder()
53+
.name(LocalizedString.of(Locale.ENGLISH, "Women"))
54+
.slug(LocalizedString.of(Locale.ENGLISH, "women"))
55+
.id("1")
56+
.version(1L)
57+
.createdAt(ZonedDateTime.now())
58+
.lastModifiedAt(ZonedDateTime.now())
59+
.ancestors()
60+
.orderHint("c2")
61+
.build());
5662
CategoryTreeFactory factory = CategoryTreeFactory.of();
5763
var tree = factory.create(allCategoriesAsFlatList);
5864
var result = tree.findBySlug(Locale.ENGLISH, "women");

0 commit comments

Comments
 (0)