delphimvcframework/test/teststompclient.dpr

32 lines
613 B
ObjectPascal
Raw Normal View History

2009-11-10 11:32:54 +01:00
program teststompclient;
{$APPTYPE CONSOLE}
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
const
SERVERNAME =
'localhost';
// '192.168.3.72';
2009-11-10 11:32:54 +01:00
begin
ReportMemoryLeaksOnShutdown := True;
2009-11-10 11:32:54 +01:00
try
Main(SERVERNAME, STOMP_Version_1_0);
Main(SERVERNAME, STOMP_Version_1_1); // Your STOMP server supports protocol 1.1 ?
2009-11-10 11:32:54 +01:00
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;
readln;
2010-04-13 12:47:57 +02:00
end.