result = stockQuoteClient.stockQuoteClientforProxy("http://" + FrameworkSettings.HOST_NAME + ":" + FrameworkSettings.HTTP_PORT, null, "IBM");
} else if (FrameworkSettings.STRATOS.equalsIgnoreCase("true")) {
result = stockQuoteClient.stockQuoteClientforProxy("http://" + FrameworkSettings.HOST_NAME + ":" + FrameworkSettings.HTTP_PORT + "/services/" + FrameworkSettings.TENANT_NAME + "/", null, "IBM");
}
System.out.println(result);
GetLogs getLogs = new GetLogs();
getLogs.setKeyword("mediator");
GetLogsResponse getLogsResponse = logViewerStub.getLogs(getLogs);
LogMessage[] logMessages = getLogsResponse.get_return();
if ((logMessages[logMessages.length - 1].getLogMessage().contains("Direction: request, ENRICH_PROP = <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\"><soapenv:Body><ns:getQuote xmlns:ns=\"http://services.samples\"><ns:request><ns:symbol>IBM</ns:symbol></ns:request></ns:getQuote></soapenv:Body></soapenv:Envelope>")) && (!result.toString().contains("IBM"))) {
Assert.fail("Enrich mediator doesn't work");
log.error("Enrich mediator doesn't work");