Search in sources :

Example 1 with ChannelServiceImpl

use of com.commercetools.sync.services.impl.ChannelServiceImpl in project commercetools-sync-java by commercetools.

the class ChannelServiceImplIT method setup.

/**
 * Deletes inventories and supply channels from source and target CTP projects. Populates target
 * CTP project with test data.
 */
@BeforeEach
void setup() {
    deleteInventoryEntriesFromTargetAndSource();
    deleteTypesFromTargetAndSource();
    deleteChannelsFromTargetAndSource();
    populateTargetProject();
    final InventorySyncOptions inventorySyncOptions = InventorySyncOptionsBuilder.of(CTP_TARGET_CLIENT).build();
    channelService = new ChannelServiceImpl(inventorySyncOptions, singleton(ChannelRole.INVENTORY_SUPPLY));
}
Also used : ChannelServiceImpl(com.commercetools.sync.services.impl.ChannelServiceImpl) InventorySyncOptions(com.commercetools.sync.inventories.InventorySyncOptions) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

InventorySyncOptions (com.commercetools.sync.inventories.InventorySyncOptions)1 ChannelServiceImpl (com.commercetools.sync.services.impl.ChannelServiceImpl)1 BeforeEach (org.junit.jupiter.api.BeforeEach)1