Search in sources :

Example 1 with HttpConnectorRequester

use of com.mulesoft.tools.migration.library.mule.steps.http.HttpConnectorRequester in project mule-migration-assistant by mulesoft.

the class WebServiceConsumerTest method setUp.

@Before
public void setUp() throws Exception {
    doc = getDocument(this.getClass().getClassLoader().getResource(configPath.toString()).toURI().getPath());
    doc.getRootElement().addNamespaceDeclaration(Namespace.getNamespace("wsc", "http://www.mulesoft.org/schema/mule/wsc"));
    appModel = mockApplicationModel(doc, temp);
    httpOutbound = new HttpOutboundEndpoint();
    httpOutbound.setExpressionMigrator(new MelToDwExpressionMigrator(report.getReport(), appModel));
    httpOutbound.setApplicationModel(appModel);
    httpsOutbound = new HttpsOutboundEndpoint();
    httpsOutbound.setExpressionMigrator(new MelToDwExpressionMigrator(report.getReport(), appModel));
    httpsOutbound.setApplicationModel(appModel);
    httpRequesterConfig = new HttpConnectorRequestConfig();
    httpRequesterConfig.setExpressionMigrator(new MelToDwExpressionMigrator(report.getReport(), appModel));
    httpRequester = new HttpConnectorRequester();
    httpRequester.setExpressionMigrator(new MelToDwExpressionMigrator(report.getReport(), appModel));
    httpRequester.setApplicationModel(appModel);
    httpHeaders = new HttpConnectorHeaders();
    httpHeaders.setExpressionMigrator(new MelToDwExpressionMigrator(report.getReport(), appModel));
    wsConsumerConfig = new WsConsumerConfig();
    wsConsumerConfig.setExpressionMigrator(new MelToDwExpressionMigrator(report.getReport(), appModel));
    wsConsumerConfig.setApplicationModel(appModel);
    wsConsumer = new WsConsumer();
    wsConsumer.setApplicationModel(appModel);
    httpConfig = new HttpConfig();
    httpConfig.setApplicationModel(appModel);
}
Also used : HttpOutboundEndpoint(com.mulesoft.tools.migration.library.mule.steps.http.HttpOutboundEndpoint) MelToDwExpressionMigrator(com.mulesoft.tools.migration.library.tools.MelToDwExpressionMigrator) HttpConnectorRequestConfig(com.mulesoft.tools.migration.library.mule.steps.http.HttpConnectorRequestConfig) HttpsOutboundEndpoint(com.mulesoft.tools.migration.library.mule.steps.http.HttpsOutboundEndpoint) HttpConnectorRequester(com.mulesoft.tools.migration.library.mule.steps.http.HttpConnectorRequester) HttpConfig(com.mulesoft.tools.migration.library.mule.steps.http.HttpConfig) HttpConnectorHeaders(com.mulesoft.tools.migration.library.mule.steps.http.HttpConnectorHeaders) Before(org.junit.Before)

Aggregations

HttpConfig (com.mulesoft.tools.migration.library.mule.steps.http.HttpConfig)1 HttpConnectorHeaders (com.mulesoft.tools.migration.library.mule.steps.http.HttpConnectorHeaders)1 HttpConnectorRequestConfig (com.mulesoft.tools.migration.library.mule.steps.http.HttpConnectorRequestConfig)1 HttpConnectorRequester (com.mulesoft.tools.migration.library.mule.steps.http.HttpConnectorRequester)1 HttpOutboundEndpoint (com.mulesoft.tools.migration.library.mule.steps.http.HttpOutboundEndpoint)1 HttpsOutboundEndpoint (com.mulesoft.tools.migration.library.mule.steps.http.HttpsOutboundEndpoint)1 MelToDwExpressionMigrator (com.mulesoft.tools.migration.library.tools.MelToDwExpressionMigrator)1 Before (org.junit.Before)1