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));
}
Aggregations