Search in sources :

Example 6 with VariantReferenceResolver

use of com.commercetools.sync.products.helpers.VariantReferenceResolver in project commercetools-sync-java by commercetools.

the class WithProductReferencesTest method setup.

@BeforeEach
void setup() {
    productService = getMockProductService(PRODUCT_ID);
    final ProductSyncOptions syncOptions = ProductSyncOptionsBuilder.of(mock(SphereClient.class)).build();
    referenceResolver = new VariantReferenceResolver(syncOptions, mock(TypeService.class), mock(ChannelService.class), mock(CustomerGroupService.class), productService, mock(ProductTypeService.class), mock(CategoryService.class), mock(CustomObjectService.class), mock(StateService.class), mock(CustomerService.class));
}
Also used : VariantReferenceResolver(com.commercetools.sync.products.helpers.VariantReferenceResolver) ProductSyncOptions(com.commercetools.sync.products.ProductSyncOptions) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 7 with VariantReferenceResolver

use of com.commercetools.sync.products.helpers.VariantReferenceResolver in project commercetools-sync-java by commercetools.

the class WithCustomObjectReferencesTest method setup.

@BeforeEach
void setup() {
    customObjectService = getMockCustomObjectService(CUSTOM_OBJECT_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), mock(CategoryService.class), customObjectService, mock(StateService.class), mock(CustomerService.class));
}
Also used : VariantReferenceResolver(com.commercetools.sync.products.helpers.VariantReferenceResolver) ProductSyncOptions(com.commercetools.sync.products.ProductSyncOptions) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 8 with VariantReferenceResolver

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);
}
Also used : VariantReferenceResolver(com.commercetools.sync.products.helpers.VariantReferenceResolver) ProductSyncOptions(com.commercetools.sync.products.ProductSyncOptions) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 9 with VariantReferenceResolver

use of com.commercetools.sync.products.helpers.VariantReferenceResolver in project commercetools-sync-java by commercetools.

the class WithCustomerReferencesTest method setup.

@BeforeEach
void setup() {
    customerService = getMockCustomerService(CUSTOMER_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), mock(CategoryService.class), mock(CustomObjectService.class), mock(StateService.class), customerService);
}
Also used : VariantReferenceResolver(com.commercetools.sync.products.helpers.VariantReferenceResolver) ProductSyncOptions(com.commercetools.sync.products.ProductSyncOptions) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 10 with VariantReferenceResolver

use of com.commercetools.sync.products.helpers.VariantReferenceResolver in project commercetools-sync-java by commercetools.

the class WithProductReferencesTest method setup.

@BeforeEach
void setup() {
    productService = getMockProductService(PRODUCT_ID);
    final ProductSyncOptions syncOptions = ProductSyncOptionsBuilder.of(mock(SphereClient.class)).build();
    referenceResolver = new VariantReferenceResolver(syncOptions, mock(TypeService.class), mock(ChannelService.class), mock(CustomerGroupService.class), productService, mock(ProductTypeService.class), mock(CategoryService.class), mock(CustomObjectService.class), mock(StateService.class), mock(CustomerService.class));
}
Also used : VariantReferenceResolver(com.commercetools.sync.products.helpers.VariantReferenceResolver) ProductSyncOptions(com.commercetools.sync.products.ProductSyncOptions) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

ProductSyncOptions (com.commercetools.sync.products.ProductSyncOptions)20 VariantReferenceResolver (com.commercetools.sync.products.helpers.VariantReferenceResolver)20 BeforeEach (org.junit.jupiter.api.BeforeEach)20