Skip to content

Commit 544f778

Browse files
committed
build(codegen): updating SDK
1 parent de98065 commit 544f778

File tree

3,040 files changed

+27204
-48696
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,040 files changed

+27204
-48696
lines changed

changes.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
**Api changes**
22

33
<details>
4-
<summary>Changed Property(s)</summary>
4+
<summary>Added Property(s)</summary>
55

6-
- :warning: changed property `actions` of type `MyBusinessUnitUpdate` from type `BusinessUnitUpdateAction[]` to `MyBusinessUnitUpdateAction[]`
6+
- added property `published` to type `ShoppingListLineItem`
77
</details>
88

99

1010
<details>
11-
<summary>Added Property(s)</summary>
11+
<summary>Changed Property(s)</summary>
1212

13-
- added property `published` to type `ShoppingListLineItem`
13+
- :warning: changed property `actions` of type `MyBusinessUnitUpdate` from type `BusinessUnitUpdateAction[]` to `MyBusinessUnitUpdateAction[]`
1414
</details>
1515

commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyApiClientsByIDTest.java

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
import java.util.concurrent.CompletableFuture;
66

77
import com.commercetools.api.client.ApiRoot;
8-
import com.tngtech.junit.dataprovider.DataProvider;
9-
import com.tngtech.junit.dataprovider.DataProviderExtension;
10-
import com.tngtech.junit.dataprovider.UseDataProvider;
11-
import com.tngtech.junit.dataprovider.UseDataProviderExtension;
128

139
import io.vrap.rmf.base.client.*;
1410
import io.vrap.rmf.base.client.ApiHttpClient;
@@ -19,28 +15,26 @@
1915
import io.vrap.rmf.base.client.utils.Generated;
2016

2117
import org.assertj.core.api.Assertions;
22-
import org.junit.jupiter.api.TestTemplate;
23-
import org.junit.jupiter.api.extension.ExtendWith;
18+
import org.junit.jupiter.params.ParameterizedTest;
19+
import org.junit.jupiter.params.provider.MethodSource;
2420
import org.mockito.Mockito;
2521

2622
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
27-
@ExtendWith(UseDataProviderExtension.class)
28-
@ExtendWith(DataProviderExtension.class)
2923
public class ByProjectKeyApiClientsByIDTest {
3024
private final VrapHttpClient httpClientMock = Mockito.mock(VrapHttpClient.class);
3125
private final String projectKey = "test_projectKey";
3226
private final static ApiRoot apiRoot = ApiRoot.of();
3327
private final ApiHttpClient client = ClientBuilder.of(httpClientMock).defaultClient("").build();
3428

35-
@TestTemplate
36-
@UseDataProvider("requestWithMethodParameters")
29+
@ParameterizedTest
30+
@MethodSource("requestWithMethodParameters")
3731
public void withMethods(ApiHttpRequest request, String httpMethod, String uri) {
3832
Assertions.assertThat(httpMethod).isEqualTo(request.getMethod().name().toLowerCase());
3933
Assertions.assertThat(uri).isEqualTo(request.getUri().toString());
4034
}
4135

42-
@TestTemplate
43-
@UseDataProvider("executeMethodParameters")
36+
@ParameterizedTest
37+
@MethodSource("executeMethodParameters")
4438
public void executeServerException(HttpRequestCommand<?> httpRequest) throws Exception {
4539
Mockito.when(httpClientMock.execute(Mockito.any()))
4640
.thenReturn(CompletableFuture.completedFuture(
@@ -50,8 +44,8 @@ public void executeServerException(HttpRequestCommand<?> httpRequest) throws Exc
5044
.hasCauseInstanceOf(ApiServerException.class);
5145
}
5246

53-
@TestTemplate
54-
@UseDataProvider("executeMethodParameters")
47+
@ParameterizedTest
48+
@MethodSource("executeMethodParameters")
5549
public void executeClientException(HttpRequestCommand<?> httpRequest) throws Exception {
5650
Mockito.when(httpClientMock.execute(Mockito.any()))
5751
.thenReturn(CompletableFuture.completedFuture(
@@ -61,7 +55,6 @@ public void executeClientException(HttpRequestCommand<?> httpRequest) throws Exc
6155
.hasCauseInstanceOf(ApiClientException.class);
6256
}
6357

64-
@DataProvider
6558
public static Object[][] requestWithMethodParameters() {
6659
return new Object[][] { new Object[] {
6760
apiRoot.withProjectKey("test_projectKey").apiClients().withId("test_ID").get().createHttpRequest(),
@@ -78,7 +71,6 @@ public static Object[][] requestWithMethodParameters() {
7871
.createHttpRequest(), "delete", "test_projectKey/api-clients/test_ID", } };
7972
}
8073

81-
@DataProvider
8274
public static Object[][] executeMethodParameters() {
8375
return new Object[][] {
8476
new Object[] { apiRoot.withProjectKey("test_projectKey").apiClients().withId("test_ID").get(), },

commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyApiClientsTest.java

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
import java.util.concurrent.CompletableFuture;
66

77
import com.commercetools.api.client.ApiRoot;
8-
import com.tngtech.junit.dataprovider.DataProvider;
9-
import com.tngtech.junit.dataprovider.DataProviderExtension;
10-
import com.tngtech.junit.dataprovider.UseDataProvider;
11-
import com.tngtech.junit.dataprovider.UseDataProviderExtension;
128

139
import io.vrap.rmf.base.client.*;
1410
import io.vrap.rmf.base.client.ApiHttpClient;
@@ -19,28 +15,26 @@
1915
import io.vrap.rmf.base.client.utils.Generated;
2016

2117
import org.assertj.core.api.Assertions;
22-
import org.junit.jupiter.api.TestTemplate;
23-
import org.junit.jupiter.api.extension.ExtendWith;
18+
import org.junit.jupiter.params.ParameterizedTest;
19+
import org.junit.jupiter.params.provider.MethodSource;
2420
import org.mockito.Mockito;
2521

2622
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
27-
@ExtendWith(UseDataProviderExtension.class)
28-
@ExtendWith(DataProviderExtension.class)
2923
public class ByProjectKeyApiClientsTest {
3024
private final VrapHttpClient httpClientMock = Mockito.mock(VrapHttpClient.class);
3125
private final String projectKey = "test_projectKey";
3226
private final static ApiRoot apiRoot = ApiRoot.of();
3327
private final ApiHttpClient client = ClientBuilder.of(httpClientMock).defaultClient("").build();
3428

35-
@TestTemplate
36-
@UseDataProvider("requestWithMethodParameters")
29+
@ParameterizedTest
30+
@MethodSource("requestWithMethodParameters")
3731
public void withMethods(ApiHttpRequest request, String httpMethod, String uri) {
3832
Assertions.assertThat(httpMethod).isEqualTo(request.getMethod().name().toLowerCase());
3933
Assertions.assertThat(uri).isEqualTo(request.getUri().toString());
4034
}
4135

42-
@TestTemplate
43-
@UseDataProvider("executeMethodParameters")
36+
@ParameterizedTest
37+
@MethodSource("executeMethodParameters")
4438
public void executeServerException(HttpRequestCommand<?> httpRequest) throws Exception {
4539
Mockito.when(httpClientMock.execute(Mockito.any()))
4640
.thenReturn(CompletableFuture.completedFuture(
@@ -50,8 +44,8 @@ public void executeServerException(HttpRequestCommand<?> httpRequest) throws Exc
5044
.hasCauseInstanceOf(ApiServerException.class);
5145
}
5246

53-
@TestTemplate
54-
@UseDataProvider("executeMethodParameters")
47+
@ParameterizedTest
48+
@MethodSource("executeMethodParameters")
5549
public void executeClientException(HttpRequestCommand<?> httpRequest) throws Exception {
5650
Mockito.when(httpClientMock.execute(Mockito.any()))
5751
.thenReturn(CompletableFuture.completedFuture(
@@ -61,7 +55,6 @@ public void executeClientException(HttpRequestCommand<?> httpRequest) throws Exc
6155
.hasCauseInstanceOf(ApiClientException.class);
6256
}
6357

64-
@DataProvider
6558
public static Object[][] requestWithMethodParameters() {
6659
return new Object[][] { new Object[] {
6760
apiRoot.withProjectKey("test_projectKey").apiClients().get().withExpand("expand").createHttpRequest(),
@@ -112,7 +105,6 @@ public static Object[][] requestWithMethodParameters() {
112105
.createHttpRequest(), "post", "test_projectKey/api-clients", } };
113106
}
114107

115-
@DataProvider
116108
public static Object[][] executeMethodParameters() {
117109
return new Object[][] {
118110
new Object[] { apiRoot.withProjectKey("test_projectKey").apiClients().get().withExpand("expand"), },

commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsByIDTest.java

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
import java.util.concurrent.CompletableFuture;
66

77
import com.commercetools.api.client.ApiRoot;
8-
import com.tngtech.junit.dataprovider.DataProvider;
9-
import com.tngtech.junit.dataprovider.DataProviderExtension;
10-
import com.tngtech.junit.dataprovider.UseDataProvider;
11-
import com.tngtech.junit.dataprovider.UseDataProviderExtension;
128

139
import io.vrap.rmf.base.client.*;
1410
import io.vrap.rmf.base.client.ApiHttpClient;
@@ -19,28 +15,26 @@
1915
import io.vrap.rmf.base.client.utils.Generated;
2016

2117
import org.assertj.core.api.Assertions;
22-
import org.junit.jupiter.api.TestTemplate;
23-
import org.junit.jupiter.api.extension.ExtendWith;
18+
import org.junit.jupiter.params.ParameterizedTest;
19+
import org.junit.jupiter.params.provider.MethodSource;
2420
import org.mockito.Mockito;
2521

2622
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
27-
@ExtendWith(UseDataProviderExtension.class)
28-
@ExtendWith(DataProviderExtension.class)
2923
public class ByProjectKeyAsAssociateByAssociateIdBusinessUnitsByIDTest {
3024
private final VrapHttpClient httpClientMock = Mockito.mock(VrapHttpClient.class);
3125
private final String projectKey = "test_projectKey";
3226
private final static ApiRoot apiRoot = ApiRoot.of();
3327
private final ApiHttpClient client = ClientBuilder.of(httpClientMock).defaultClient("").build();
3428

35-
@TestTemplate
36-
@UseDataProvider("requestWithMethodParameters")
29+
@ParameterizedTest
30+
@MethodSource("requestWithMethodParameters")
3731
public void withMethods(ApiHttpRequest request, String httpMethod, String uri) {
3832
Assertions.assertThat(httpMethod).isEqualTo(request.getMethod().name().toLowerCase());
3933
Assertions.assertThat(uri).isEqualTo(request.getUri().toString());
4034
}
4135

42-
@TestTemplate
43-
@UseDataProvider("executeMethodParameters")
36+
@ParameterizedTest
37+
@MethodSource("executeMethodParameters")
4438
public void executeServerException(HttpRequestCommand<?> httpRequest) throws Exception {
4539
Mockito.when(httpClientMock.execute(Mockito.any()))
4640
.thenReturn(CompletableFuture.completedFuture(
@@ -50,8 +44,8 @@ public void executeServerException(HttpRequestCommand<?> httpRequest) throws Exc
5044
.hasCauseInstanceOf(ApiServerException.class);
5145
}
5246

53-
@TestTemplate
54-
@UseDataProvider("executeMethodParameters")
47+
@ParameterizedTest
48+
@MethodSource("executeMethodParameters")
5549
public void executeClientException(HttpRequestCommand<?> httpRequest) throws Exception {
5650
Mockito.when(httpClientMock.execute(Mockito.any()))
5751
.thenReturn(CompletableFuture.completedFuture(
@@ -61,7 +55,6 @@ public void executeClientException(HttpRequestCommand<?> httpRequest) throws Exc
6155
.hasCauseInstanceOf(ApiClientException.class);
6256
}
6357

64-
@DataProvider
6558
public static Object[][] requestWithMethodParameters() {
6659
return new Object[][] {
6760
new Object[] {
@@ -113,7 +106,6 @@ public static Object[][] requestWithMethodParameters() {
113106
"post", "test_projectKey/as-associate/test_associateId/business-units/test_ID", } };
114107
}
115108

116-
@DataProvider
117109
public static Object[][] executeMethodParameters() {
118110
return new Object[][] {
119111
new Object[] { apiRoot.withProjectKey("test_projectKey")

commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsKeyByKeyTest.java

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
import java.util.concurrent.CompletableFuture;
66

77
import com.commercetools.api.client.ApiRoot;
8-
import com.tngtech.junit.dataprovider.DataProvider;
9-
import com.tngtech.junit.dataprovider.DataProviderExtension;
10-
import com.tngtech.junit.dataprovider.UseDataProvider;
11-
import com.tngtech.junit.dataprovider.UseDataProviderExtension;
128

139
import io.vrap.rmf.base.client.*;
1410
import io.vrap.rmf.base.client.ApiHttpClient;
@@ -19,28 +15,26 @@
1915
import io.vrap.rmf.base.client.utils.Generated;
2016

2117
import org.assertj.core.api.Assertions;
22-
import org.junit.jupiter.api.TestTemplate;
23-
import org.junit.jupiter.api.extension.ExtendWith;
18+
import org.junit.jupiter.params.ParameterizedTest;
19+
import org.junit.jupiter.params.provider.MethodSource;
2420
import org.mockito.Mockito;
2521

2622
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
27-
@ExtendWith(UseDataProviderExtension.class)
28-
@ExtendWith(DataProviderExtension.class)
2923
public class ByProjectKeyAsAssociateByAssociateIdBusinessUnitsKeyByKeyTest {
3024
private final VrapHttpClient httpClientMock = Mockito.mock(VrapHttpClient.class);
3125
private final String projectKey = "test_projectKey";
3226
private final static ApiRoot apiRoot = ApiRoot.of();
3327
private final ApiHttpClient client = ClientBuilder.of(httpClientMock).defaultClient("").build();
3428

35-
@TestTemplate
36-
@UseDataProvider("requestWithMethodParameters")
29+
@ParameterizedTest
30+
@MethodSource("requestWithMethodParameters")
3731
public void withMethods(ApiHttpRequest request, String httpMethod, String uri) {
3832
Assertions.assertThat(httpMethod).isEqualTo(request.getMethod().name().toLowerCase());
3933
Assertions.assertThat(uri).isEqualTo(request.getUri().toString());
4034
}
4135

42-
@TestTemplate
43-
@UseDataProvider("executeMethodParameters")
36+
@ParameterizedTest
37+
@MethodSource("executeMethodParameters")
4438
public void executeServerException(HttpRequestCommand<?> httpRequest) throws Exception {
4539
Mockito.when(httpClientMock.execute(Mockito.any()))
4640
.thenReturn(CompletableFuture.completedFuture(
@@ -50,8 +44,8 @@ public void executeServerException(HttpRequestCommand<?> httpRequest) throws Exc
5044
.hasCauseInstanceOf(ApiServerException.class);
5145
}
5246

53-
@TestTemplate
54-
@UseDataProvider("executeMethodParameters")
47+
@ParameterizedTest
48+
@MethodSource("executeMethodParameters")
5549
public void executeClientException(HttpRequestCommand<?> httpRequest) throws Exception {
5650
Mockito.when(httpClientMock.execute(Mockito.any()))
5751
.thenReturn(CompletableFuture.completedFuture(
@@ -61,7 +55,6 @@ public void executeClientException(HttpRequestCommand<?> httpRequest) throws Exc
6155
.hasCauseInstanceOf(ApiClientException.class);
6256
}
6357

64-
@DataProvider
6558
public static Object[][] requestWithMethodParameters() {
6659
return new Object[][] {
6760
new Object[] {
@@ -115,7 +108,6 @@ public static Object[][] requestWithMethodParameters() {
115108
"post", "test_projectKey/as-associate/test_associateId/business-units/key=test_key", } };
116109
}
117110

118-
@DataProvider
119111
public static Object[][] executeMethodParameters() {
120112
return new Object[][] {
121113
new Object[] { apiRoot.withProjectKey("test_projectKey")

commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsTest.java

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
import java.util.concurrent.CompletableFuture;
66

77
import com.commercetools.api.client.ApiRoot;
8-
import com.tngtech.junit.dataprovider.DataProvider;
9-
import com.tngtech.junit.dataprovider.DataProviderExtension;
10-
import com.tngtech.junit.dataprovider.UseDataProvider;
11-
import com.tngtech.junit.dataprovider.UseDataProviderExtension;
128

139
import io.vrap.rmf.base.client.*;
1410
import io.vrap.rmf.base.client.ApiHttpClient;
@@ -19,28 +15,26 @@
1915
import io.vrap.rmf.base.client.utils.Generated;
2016

2117
import org.assertj.core.api.Assertions;
22-
import org.junit.jupiter.api.TestTemplate;
23-
import org.junit.jupiter.api.extension.ExtendWith;
18+
import org.junit.jupiter.params.ParameterizedTest;
19+
import org.junit.jupiter.params.provider.MethodSource;
2420
import org.mockito.Mockito;
2521

2622
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
27-
@ExtendWith(UseDataProviderExtension.class)
28-
@ExtendWith(DataProviderExtension.class)
2923
public class ByProjectKeyAsAssociateByAssociateIdBusinessUnitsTest {
3024
private final VrapHttpClient httpClientMock = Mockito.mock(VrapHttpClient.class);
3125
private final String projectKey = "test_projectKey";
3226
private final static ApiRoot apiRoot = ApiRoot.of();
3327
private final ApiHttpClient client = ClientBuilder.of(httpClientMock).defaultClient("").build();
3428

35-
@TestTemplate
36-
@UseDataProvider("requestWithMethodParameters")
29+
@ParameterizedTest
30+
@MethodSource("requestWithMethodParameters")
3731
public void withMethods(ApiHttpRequest request, String httpMethod, String uri) {
3832
Assertions.assertThat(httpMethod).isEqualTo(request.getMethod().name().toLowerCase());
3933
Assertions.assertThat(uri).isEqualTo(request.getUri().toString());
4034
}
4135

42-
@TestTemplate
43-
@UseDataProvider("executeMethodParameters")
36+
@ParameterizedTest
37+
@MethodSource("executeMethodParameters")
4438
public void executeServerException(HttpRequestCommand<?> httpRequest) throws Exception {
4539
Mockito.when(httpClientMock.execute(Mockito.any()))
4640
.thenReturn(CompletableFuture.completedFuture(
@@ -50,8 +44,8 @@ public void executeServerException(HttpRequestCommand<?> httpRequest) throws Exc
5044
.hasCauseInstanceOf(ApiServerException.class);
5145
}
5246

53-
@TestTemplate
54-
@UseDataProvider("executeMethodParameters")
47+
@ParameterizedTest
48+
@MethodSource("executeMethodParameters")
5549
public void executeClientException(HttpRequestCommand<?> httpRequest) throws Exception {
5650
Mockito.when(httpClientMock.execute(Mockito.any()))
5751
.thenReturn(CompletableFuture.completedFuture(
@@ -61,7 +55,6 @@ public void executeClientException(HttpRequestCommand<?> httpRequest) throws Exc
6155
.hasCauseInstanceOf(ApiClientException.class);
6256
}
6357

64-
@DataProvider
6558
public static Object[][] requestWithMethodParameters() {
6659
return new Object[][] {
6760
new Object[] {
@@ -172,7 +165,6 @@ public static Object[][] requestWithMethodParameters() {
172165
"post", "test_projectKey/as-associate/test_associateId/business-units", } };
173166
}
174167

175-
@DataProvider
176168
public static Object[][] executeMethodParameters() {
177169
return new Object[][] {
178170
new Object[] { apiRoot.withProjectKey("test_projectKey")

0 commit comments

Comments
 (0)