use of com.mulesoft.tools.migration.library.mule.steps.http.HttpConnectorHeaders 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);
}
Aggregations