mirror of
https://github.com/danieleteti/delphimvcframework.git
synced 2024-11-16 08:15:53 +01:00
1285543660
Tested on Apache Apollo 1.2
32 lines
613 B
ObjectPascal
32 lines
613 B
ObjectPascal
program teststompclient;
|
|
{$APPTYPE CONSOLE}
|
|
|
|
|
|
uses
|
|
MainU in 'MainU.pas',
|
|
SysUtils,
|
|
StompClient in '..\StompClient.pas',
|
|
StompTypes in '..\StompTypes.pas';
|
|
|
|
const
|
|
SERVERNAME =
|
|
'localhost';
|
|
// '192.168.3.72';
|
|
|
|
begin
|
|
ReportMemoryLeaksOnShutdown := True;
|
|
try
|
|
Main(SERVERNAME, STOMP_Version_1_0);
|
|
Main(SERVERNAME, STOMP_Version_1_1); // Your STOMP server supports protocol 1.1 ?
|
|
MainWithTransaction;
|
|
Test_Unicode_Chars;
|
|
Writeln('ALL TESTS OK');
|
|
except
|
|
on E: Exception do
|
|
Writeln(E.Classname, ': ', E.message);
|
|
end;
|
|
|
|
readln;
|
|
|
|
end.
|