use of com.commercetools.sync.products.helpers.VariantReferenceResolver in project commercetools-sync-java by commercetools.
the class WithProductTypeReferencesTest method setup.
@BeforeEach
void setup() {
productTypeService = getMockProductTypeService(PRODUCT_TYPE_ID);
final ProductSyncOptions syncOptions = ProductSyncOptionsBuilder.of(mock(SphereClient.class)).build();
referenceResolver = new VariantReferenceResolver(syncOptions, mock(TypeService.class), mock(ChannelService.class), mock(CustomerGroupService.class), mock(ProductService.class), productTypeService, mock(CategoryService.class), mock(CustomObjectService.class), mock(StateService.class), mock(CustomerService.class));
}
use of com.commercetools.sync.products.helpers.VariantReferenceResolver in project commercetools-sync-java by commercetools.
the class WithStateReferencesTest method setup.
@BeforeEach
void setup() {
final ProductSyncOptions syncOptions = ProductSyncOptionsBuilder.of(mock(SphereClient.class)).build();
stateService = getMockStateService(STATE_ID);
referenceResolver = new VariantReferenceResolver(syncOptions, mock(TypeService.class), mock(ChannelService.class), mock(CustomerGroupService.class), mock(ProductService.class), mock(ProductTypeService.class), mock(CategoryService.class), mock(CustomObjectService.class), stateService, mock(CustomerService.class));
}
use of com.commercetools.sync.products.helpers.VariantReferenceResolver in project commercetools-sync-java by commercetools.
the class WithCategoryReferencesTest method setup.
@BeforeEach
void setup() {
categoryService = getMockCategoryService(CATEGORY_ID);
final ProductSyncOptions syncOptions = ProductSyncOptionsBuilder.of(mock(SphereClient.class)).build();
referenceResolver = new VariantReferenceResolver(syncOptions, mock(TypeService.class), mock(ChannelService.class), mock(CustomerGroupService.class), mock(ProductService.class), mock(ProductTypeService.class), categoryService, mock(CustomObjectService.class), mock(StateService.class), mock(CustomerService.class));
}
use of com.commercetools.sync.products.helpers.VariantReferenceResolver in project commercetools-sync-java by commercetools.
the class WithCategoryReferencesTest method setup.
@BeforeEach
void setup() {
categoryService = getMockCategoryService(CATEGORY_ID);
final ProductSyncOptions syncOptions = ProductSyncOptionsBuilder.of(mock(SphereClient.class)).build();
referenceResolver = new VariantReferenceResolver(syncOptions, mock(TypeService.class), mock(ChannelService.class), mock(CustomerGroupService.class), mock(ProductService.class), mock(ProductTypeService.class), categoryService, mock(CustomObjectService.class), mock(StateService.class), mock(CustomerService.class));
}
use of com.commercetools.sync.products.helpers.VariantReferenceResolver in project commercetools-sync-java by commercetools.
the class WithCustomerReferencesTest method setup.
@BeforeEach
void setup() {
final ProductSyncOptions syncOptions = ProductSyncOptionsBuilder.of(mock(SphereClient.class)).build();
customerService = getMockCustomerService(CUSTOMER_ID);
referenceResolver = new VariantReferenceResolver(syncOptions, mock(TypeService.class), mock(ChannelService.class), mock(CustomerGroupService.class), mock(ProductService.class), mock(ProductTypeService.class), mock(CategoryService.class), mock(CustomObjectService.class), mock(StateService.class), customerService);
}
Aggregations