use of com.commercetools.sync.services.impl.CustomerGroupServiceImpl in project commercetools-sync-java by commercetools.
the class CustomerGroupServiceImplIT method setup.
/**
* Deletes customer group from the target CTP projects, then it populates the project with test
* data.
*/
@BeforeEach
void setup() {
deleteCustomerGroups(CTP_TARGET_CLIENT);
warnings = new ArrayList<>();
oldCustomerGroup = createCustomerGroup(CTP_TARGET_CLIENT, CUSTOMER_GROUP_NAME, CUSTOMER_GROUP_KEY);
final ProductSyncOptions productSyncOptions = ProductSyncOptionsBuilder.of(CTP_TARGET_CLIENT).warningCallback((exception, oldResource, newResource) -> warnings.add(exception.getMessage())).build();
customerGroupService = new CustomerGroupServiceImpl(productSyncOptions);
}
Aggregations