diff options
Diffstat (limited to 'js/test/Ice/exceptions/Client.js')
-rw-r--r-- | js/test/Ice/exceptions/Client.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/js/test/Ice/exceptions/Client.js b/js/test/Ice/exceptions/Client.js index 9d61f846dcd..6034cedb0a4 100644 --- a/js/test/Ice/exceptions/Client.js +++ b/js/test/Ice/exceptions/Client.js @@ -177,6 +177,25 @@ { test(ex instanceof Ice.AlreadyRegisteredException); } + try + { + adapter.add(obj, communicator.stringToIdentity("")); + test(false); + } + catch(ex) + { + test(ex instanceof Ice.IllegalIdentityException); + test(ex.id.name == ""); + } + try + { + adapter.add(null, communicator.stringToIdentity("x")); + test(false); + } + catch(ex) + { + test(ex instanceof Ice.IllegalServantException); + } adapter.remove(communicator.stringToIdentity("x")); try |