2009-11-10 11:32:54 +01:00
|
|
|
program teststompclient;
|
|
|
|
{$APPTYPE CONSOLE}
|
|
|
|
|
2012-04-18 19:19:31 +02:00
|
|
|
|
2009-11-10 11:32:54 +01:00
|
|
|
uses
|
|
|
|
MainU in 'MainU.pas',
|
|
|
|
SysUtils,
|
2010-04-02 12:44:54 +02:00
|
|
|
StompClient in '..\StompClient.pas',
|
|
|
|
StompTypes in '..\StompTypes.pas';
|
2009-11-10 11:32:54 +01:00
|
|
|
|
2012-04-18 19:19:31 +02:00
|
|
|
const
|
|
|
|
SERVERNAME =
|
|
|
|
'localhost';
|
|
|
|
// '192.168.3.72';
|
|
|
|
|
2009-11-10 11:32:54 +01:00
|
|
|
begin
|
2012-04-18 19:19:31 +02:00
|
|
|
ReportMemoryLeaksOnShutdown := True;
|
2009-11-10 11:32:54 +01:00
|
|
|
try
|
2012-04-18 19:19:31 +02:00
|
|
|
Main(SERVERNAME, STOMP_Version_1_0);
|
2015-03-12 13:08:38 +01:00
|
|
|
//Main(SERVERNAME, STOMP_Version_1_1); // Your STOMP server supports protocol 1.1 ?
|
|
|
|
//MainWithTransaction;
|
|
|
|
//Test_Unicode_Chars;
|
2010-04-13 12:47:57 +02:00
|
|
|
Writeln('ALL TESTS OK');
|
2009-11-10 11:32:54 +01:00
|
|
|
except
|
|
|
|
on E: Exception do
|
2010-04-13 12:47:57 +02:00
|
|
|
Writeln(E.Classname, ': ', E.message);
|
2009-11-10 11:32:54 +01:00
|
|
|
end;
|
|
|
|
|
2010-04-14 00:25:14 +02:00
|
|
|
readln;
|
2012-04-18 19:19:31 +02:00
|
|
|
|
2010-04-13 12:47:57 +02:00
|
|
|
end.
|