mirror of
https://github.com/danieleteti/delphimvcframework.git
synced 2024-11-15 07:45:54 +01:00
This commit is contained in:
parent
1473beb937
commit
b1f838ece9
@ -2801,7 +2801,7 @@ end;
|
||||
|
||||
constructor EMVCJSONRPCRemoteException.Create(const ErrCode: Integer; const ErrMessage: String);
|
||||
begin
|
||||
Create(ErrCode, ErrMessage);
|
||||
Create(ErrCode, ErrMessage, TValue.Empty);
|
||||
end;
|
||||
|
||||
constructor EMVCJSONRPCRemoteException.Create(const ErrCode: Integer; const ErrMessage: String;
|
||||
|
@ -46,6 +46,8 @@ type
|
||||
procedure TestRequestWithMalformedJSON;
|
||||
[Test]
|
||||
procedure TestNotificationWithNoParameters;
|
||||
[Test]
|
||||
procedure TestIssue595;
|
||||
end;
|
||||
|
||||
|
||||
@ -56,6 +58,16 @@ implementation
|
||||
|
||||
uses MVCFramework.JSONRPC;
|
||||
|
||||
procedure TTestJSONRPC.TestIssue595;
|
||||
begin
|
||||
Assert.WillRaise(
|
||||
procedure
|
||||
begin
|
||||
raise EMVCJSONRPCRemoteException.Create(100, 'ErrMessage');
|
||||
end,
|
||||
EMVCJSONRPCRemoteException);
|
||||
end;
|
||||
|
||||
procedure TTestJSONRPC.TestNotificationWithNoParameters;
|
||||
var
|
||||
lReq: IJSONRPCRequest;
|
||||
|
Loading…
Reference in New Issue
Block a user