Skip to content

Commit f1d786e

Browse files
author
salander85
committed
Cleanup: Remove all occurences of 'sphere'
1 parent 526b5e8 commit f1d786e

26 files changed

Lines changed: 78 additions & 94 deletions

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ private static Channel createChannelIfNotAlreadyExisting(
9494
/**
9595
* Tries to fetch channel of key {@code channelKey} using {@code ctpClient}.
9696
*
97-
* @param ctpClient sphere client used to execute requests
97+
* @param ctpClient client used to execute requests
9898
* @param channelKey key of requested channel
9999
* @return {@link java.util.Optional} which may contain channel of key {@code channelKey}
100100
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public static CustomFieldsDraft getMockCustomFieldsDraft() {
196196
* Tries to fetch inventory entry of {@code sku} and {@code supplyChannel} using {@code
197197
* ctpClient}.
198198
*
199-
* @param ctpClient sphere client used to execute requests
199+
* @param ctpClient client used to execute requests
200200
* @param sku sku of requested inventory entry
201201
* @param supplyChannel optional reference to supply channel of requested inventory entry
202202
* @param expand

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ private static boolean productTypeExists(
419419
/**
420420
* Tries to fetch product type of {@code key} using {@code cptClient}.
421421
*
422-
* @param cptClient sphere client used to execute requests.
422+
* @param cptClient client used to execute requests.
423423
* @param key key of requested product type.
424424
* @return {@link java.util.Optional} which may contain product type of {@code key}.
425425
*/

src/integration-test/java/com/commercetools/sync/integration/services/impl/CartDiscountServiceImplIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ void fetchMatchingCartDiscountsByKeys_WithAnyExistingKeys_ShouldReturnASetOfCart
149149

150150
@Test
151151
void fetchMatchingCartDiscountsByKeys_WithBadGateWayExceptionAlways_ShouldFail() {
152-
// Mock sphere client to return BadGatewayException on any request.
152+
// Mock client to return BadGatewayException on any request.
153153
final ProjectApiRoot spyClient = spy(CTP_TARGET_CLIENT);
154154
final ByProjectKeyCartDiscountsRequestBuilder byProjectKeyCartDiscountsRequestBuilder = mock();
155155
when(spyClient.cartDiscounts()).thenReturn(byProjectKeyCartDiscountsRequestBuilder);

src/integration-test/java/com/commercetools/sync/integration/services/impl/CategoryServiceImplIT.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ void fetchMatchingCategoriesByKeys_WithAllExistingSetOfKeys_ShouldReturnSetOfCat
198198

199199
@Test
200200
void fetchMatchingCategoriesByKeys_WithBadGateWayExceptionAlways_ShouldFail() {
201-
// Mock sphere client to return BadGatewayException on any request.
201+
// Mock client to return BadGatewayException on any request.
202202

203203
final ProjectApiRoot spyClient = spy(CTP_TARGET_CLIENT);
204204
when(spyClient.categories()).thenReturn(mock(ByProjectKeyCategoriesRequestBuilder.class));
@@ -547,10 +547,10 @@ void updateCategory_WithInvalidChanges_ShouldNotUpdateCategory() {
547547
final List<DuplicateFieldError> fieldErrors =
548548
badRequestException.getErrorResponse().getErrors().stream()
549549
.map(
550-
sphereError -> {
551-
assertThat(sphereError.getCode())
550+
error -> {
551+
assertThat(error.getCode())
552552
.isEqualTo(DuplicateFieldError.DUPLICATE_FIELD);
553-
return (DuplicateFieldError) sphereError;
553+
return (DuplicateFieldError) error;
554554
})
555555
.collect(toList());
556556
assertThat(fieldErrors).hasSize(1);
@@ -602,7 +602,7 @@ void fetchCategory_WithNullKey_ShouldNotFetchCategory() {
602602

603603
@Test
604604
void fetchCategory_WithBadGateWayExceptionAlways_ShouldFail() {
605-
// Mock sphere client to return BadGatewayException on any request.
605+
// Mock client to return BadGatewayException on any request.
606606
final ProjectApiRoot spyClient = spy(CTP_TARGET_CLIENT);
607607
when(spyClient.categories()).thenReturn(mock(ByProjectKeyCategoriesRequestBuilder.class));
608608

src/integration-test/java/com/commercetools/sync/integration/services/impl/CustomObjectServiceImplIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ void fetchMatchingCustomObjects_WithNonExistingKeysAndContainers_ShouldReturnEmp
213213

214214
@Test
215215
void fetchMatchingCustomObjectsByCompositeIdentifiers_WithBadGateWayExceptionAlways_ShouldFail() {
216-
// Mock sphere client to return BadGatewayException on any request.
216+
// Mock client to return BadGatewayException on any request.
217217
final ProjectApiRoot spyClient = Mockito.spy(TestClientUtils.CTP_TARGET_CLIENT);
218218
when(spyClient.customObjects()).thenReturn(mock(ByProjectKeyCustomObjectsRequestBuilder.class));
219219
final ByProjectKeyCustomObjectsGet getMock = mock(ByProjectKeyCustomObjectsGet.class);

src/integration-test/java/com/commercetools/sync/integration/services/impl/ProductTypeServiceImplIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ void fetchMatchingProductTypesByKeys_WithAnyExistingKeys_ShouldReturnASetOfProdu
180180

181181
@Test
182182
void fetchMatchingProductTypesByKeys_WithBadGateWayExceptionAlways_ShouldFail() {
183-
// Mock sphere client to return BadGatewayException on any request.
183+
// Mock client to return BadGatewayException on any request.
184184

185185
final ProjectApiRoot spyClient = spy(CTP_TARGET_CLIENT);
186186
when(spyClient.productTypes()).thenReturn(mock(ByProjectKeyProductTypesRequestBuilder.class));

src/integration-test/java/com/commercetools/sync/integration/services/impl/StateServiceImplIT.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,7 @@ void fetchMatchingStatesByKeys_WithAnyExistingKeys_ShouldReturnASetOfStates() {
165165

166166
@Test
167167
void fetchMatchingStatesByKeys_WithBadGateWayExceptionAlways_ShouldFail() {
168-
// Mock sphere client to return BadGatewayException on any request.
169-
168+
// Mock client to return BadGatewayException on any request.
170169
final ProjectApiRoot spyClient = spy(CTP_TARGET_CLIENT);
171170
when(spyClient.states()).thenReturn(mock(ByProjectKeyStatesRequestBuilder.class));
172171
final ByProjectKeyStatesGet getMock = mock(ByProjectKeyStatesGet.class);

src/integration-test/java/com/commercetools/sync/integration/services/impl/TaxCategoryServiceImplIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ void fetchMatchingTaxCategoriesByKeys_WithAnyExistingKeys_ShouldReturnASetOfTaxC
164164

165165
@Test
166166
void fetchMatchingTaxCategoriesByKeys_WithBadGateWayExceptionAlways_ShouldFail() {
167-
// Mock sphere client to return BadGatewayException on any request.
167+
// Mock client to return BadGatewayException on any request.
168168
final ProjectApiRoot spyClient = spy(CTP_TARGET_CLIENT);
169169
when(spyClient.taxCategories()).thenReturn(mock(ByProjectKeyTaxCategoriesRequestBuilder.class));
170170
final ByProjectKeyTaxCategoriesGet getMock = mock(ByProjectKeyTaxCategoriesGet.class);

src/integration-test/java/com/commercetools/sync/integration/services/impl/TypeServiceImplIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ void fetchMatchingTypesByKeys_WithAnyExistingKeys_ShouldReturnASetOfTypes() {
123123

124124
@Test
125125
void fetchMatchingTypesByKeys_WithBadGateWayExceptionAlways_ShouldFail() {
126-
// Mock sphere client to return BadGatewayException on any request.
126+
// Mock client to return BadGatewayException on any request.
127127
final ProjectApiRoot spyClient = Mockito.spy(TestClientUtils.CTP_TARGET_CLIENT);
128128
when(spyClient.types()).thenReturn(mock(ByProjectKeyTypesRequestBuilder.class));
129129
final ByProjectKeyTypesGet getMock = mock(ByProjectKeyTypesGet.class);

0 commit comments

Comments
 (0)