Search in sources :

Example 1 with APIGenerator

use of io.syndesis.server.api.generator.APIGenerator in project syndesis by syndesisio.

the class IntegrationHandlerTest method setUp.

@Before
public void setUp() {
    dataManager = mock(DataManager.class);
    Validator validator = mock(Validator.class);
    openShiftService = mock(OpenShiftService.class);
    inspectors = mock(Inspectors.class);
    apiGenerator = mock(APIGenerator.class);
    when(apiGenerator.updateFlowExcerpts(any(Integration.class))).then(ctx -> ctx.getArguments()[0]);
    encryptionSupport = mock(EncryptionComponent.class);
    handler = new IntegrationHandler(dataManager, openShiftService, validator, inspectors, encryptionSupport, apiGenerator, mock(IntegrationOverviewHelper.class));
}
Also used : Inspectors(io.syndesis.server.inspector.Inspectors) Integration(io.syndesis.common.model.integration.Integration) OpenShiftService(io.syndesis.server.openshift.OpenShiftService) APIGenerator(io.syndesis.server.api.generator.APIGenerator) EncryptionComponent(io.syndesis.server.dao.manager.EncryptionComponent) DataManager(io.syndesis.server.dao.manager.DataManager) Validator(javax.validation.Validator) Before(org.junit.Before)

Aggregations

Integration (io.syndesis.common.model.integration.Integration)1 APIGenerator (io.syndesis.server.api.generator.APIGenerator)1 DataManager (io.syndesis.server.dao.manager.DataManager)1 EncryptionComponent (io.syndesis.server.dao.manager.EncryptionComponent)1 Inspectors (io.syndesis.server.inspector.Inspectors)1 OpenShiftService (io.syndesis.server.openshift.OpenShiftService)1 Validator (javax.validation.Validator)1 Before (org.junit.Before)1