sampleNo = 252;
}
@Override
protected void invokeClient() {
LogViewerStub logViewerStub = null;
try {
logViewerStub = new LogViewerStub("https://" + FrameworkSettings.HOST_NAME + ":" + FrameworkSettings.HTTPS_PORT + "/services/LogViewer");
AuthenticateStub authenticateStub = new AuthenticateStub();
authenticateStub.authenticateAdminStub(logViewerStub, sessionCookie);
clientLog = Axis2Client.fireClient("ant jmsclient -Djms_type=text -Djms_payload=\"12.33 1000 ACP\" -Djms_dest=dynamicQueues/JMSTextProxy");
LogMessage[] logMessages = logViewerStub.getLogs("ALL", "PropertyMediator");
if (!logMessages[logMessages.length - 1].getLogMessage().contains(searchWord)) {
Assert.fail("Sample 252 JMSTextProxy Case doesn't work");
log.error("Sample 252 JMSTextProxy Case doesn't work");
}
} catch (Exception e) {
log.error("Sample 252 JMSTextProxy Case doesn't work : " + e.getMessage());
}
try {
clientLog1 = Axis2Client.fireClient("ant jmsclient -Djms_type=binary -Djms_dest=dynamicQueues/JMSFileUploadProxy -Djms_payload=./../../repository/samples/resources/mtom/asf-logo.gif");
LogMessage[] logMessages = logViewerStub.getLogs("ALL", "PropertyMediator");
if (!logMessages[logMessages.length - 1].getLogMessage().contains(searchWord)) {
Assert.fail("Sample 252 JMSFileUploadProxy Case doesn't work");
log.error("Sample 252 JMSFileUploadProxy Case doesn't work");
}
} catch (Exception e) {
log.error("Sample 252 JMSFileUploadProxy Case doesn't work : " + e.getMessage());
}
try {
clientLog2 = Axis2Client.fireClient("ant jmsclient -Djms_type=pox -Djms_dest=dynamicQueues/JMSPoxProxy -Djms_payload=MSFT");
LogMessage[] logMessages = logViewerStub.getLogs("ALL", "PropertyMediator");
if (!logMessages[logMessages.length - 1].getLogMessage().contains(searchWord)) {
Assert.fail("Sample 252 MSTF Case doesn't work");
log.error("Sample 252 MSTF Case doesn't work");
}
} catch (Exception e) {